Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

UNIX Strings Command? - Re: Searching binary data

by metadoktor (Hermit)
on Mar 14, 2002 at 17:23 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://151744]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-18 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found