Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6041313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:38:37+00:00 2026-05-23T06:38:37+00:00

Possible Duplicate: Searching a log file Where I can either enter a binary file

  • 0

Possible Duplicate:
Searching a log file

Where I can either enter a binary file or the text file I have and search for a pattern of a multiple hex values.

What is viewed in my Text File:

0x000001A0: 36 5B 09 76 99 31 55 09 78 99 34 51 49 BF E0 03

0x000001B0: 28 0B 0A 03 0B E0 07 28 0B 0A 03 0B 49 58 09 35

For example: I want to be able to find the pattern ’49 BF E0 03 28 0B 0A’, Which goes across lines 1 and 2 above but I can’t just search for it regularly because of the 0x000001B0: at the beginning of the line

Above is what is seen in the text file.

The issue is if it’s in binary I’m not sure where I’m located in the file where as if I were in the text file I know what location i’m in (which is necessary).

Needs to be free.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:38:38+00:00Added an answer on May 23, 2026 at 6:38 am

    You don’t need to use emacs because vim can do it for you (I say this because you tagged this vim, and not to start a flame war).

    To do this in vim, open your binary in vim and type the following:

    :%!xxd
    

    This will filter the file and convert to hex mode. So something that looks like this when you open:

    Êþº¾^@^@^@^B^@^@^@^R^@^@^@^@^@^@^P^@^@^@L0^@^@^@^L^@^@^@^G^@^@^@^C^@^@`^@^@^@
    ^@^@^L^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^
    @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
    

    will display as

    0000000: cafe babe 0000 0002 0000 0012 0000 0000  ................
    0000010: 0000 1000 0000 4c30 0000 000c 0000 0007  ......L0........
    0000020: 0000 0003 0000 6000 0000 494c 0000 000c  ......`...IL....
    

    when you run that command. To convert back to binary form after you’re done editing, type:

    :%!xxd -r
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to convert hex to a byte array? I'm searching for a
Possible Duplicate: What algorithm .Net use for searching a pattern in a string? I
Possible Duplicate: How does the Google Did you mean? Algorithm work? Suppose you have
Possible Duplicate: reverse a string in Python I tried searching the python documentation for
Possible Duplicate: How do I calculate relative time? I am searching for a custom
Possible Duplicate: Can I get more than 1000 records from a DirectorySearcher in Asp.Net?
Possible Duplicate: How can I remove external links from HTML using Perl? Alright, i'm
Possible Duplicate: Searching a good Javascript Minifier. I am working on several javascript files
Possible Duplicate: Akima interpolation of an array of doubles I'm searching for an algorithm
Possible Duplicate: Should I Create a New Delegate Instance? Hi, I've tried searching for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.