q(xxd) print hex without adding line breaks

Problem: you have a long search string in hex digits. Could be 55 bytes (110 hex digits). xxd output automatically, silently adds lines breaks so you are unable to use any unix search tool.

solution: xxd -c 9999999 > somefile.txt

What’s the limit to the -c? No clue, and I don’t need to know.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s