Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

UNIX Strings Command? - Re: Searching binary data

by metadoktor (Hermit)
on Mar 14, 2002 at 17:23 UTC ( #151744=note: print w/replies, xml ) Need Help??


in reply to Searching binary data

What sort of content are you searching for??? If you're searching for normal text then you can sometimes do something like this under UNIX:

cat binaryfile | strings | more

Something similar will work under Windows assuming that you either use Cygwin or craft your own program that reads binary files and extracts text.

metadoktor

"The doktor is in."

  • Comment on UNIX Strings Command? - Re: Searching binary data

Replies are listed 'Best First'.
Re: UNIX Strings Command? - Re: Searching binary data
by Shendal (Hermit) on Mar 14, 2002 at 17:37 UTC
    Strings only works if I am looking for strings in a binary file. What I'm looking for is the value in hex of a specific location in the file. That is, after a series of '0000001000001000', I want to know that the next four words are '1111000001011010'. Unfortunately, the suggestion given by Juerd above doesn't work.
    Cheers,
    Shendal

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://151744]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2019-07-21 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (7 votes). Check out past polls.

    Notices?