Re: binary grep

2009-09-19 Thread Nelson Castillo
uld basically > fail. > I guess it would suit 95% of my needs, I'm just trying to anticipate > potential caveats. > What about matching bytes values? Will grep accept syntax like > \x55\x3a\xff\x10? I found this using Google: http://debugmo.de/?p=100 I wonder if it helps.

Re: binary grep

2009-09-19 Thread Rob Gom
Hello, thanks for your suggestions. I'm afraid grep was designed as text-oriented tool. I'm not sure how it will handle CR and/or LF characters when matching pattern. IIRC grep has no multiline patterns, so it could basically fail. I guess it would suit 95% of my needs, I'm just trying to anticipat

Re: binary grep

2009-09-18 Thread Jesús M. Navarro
Hi, Rob: On Friday 18 September 2009 16:55:37 Rob Gom wrote: > Hello, > are you aware of a tool, which would allow me to search for given > pattern in a binary file, then at least output file position (so that > I could pass the number to dd) or output next few bytes? > For text files I use e.g .g

binary grep

2009-09-18 Thread Rob Gom
Hello, are you aware of a tool, which would allow me to search for given pattern in a binary file, then at least output file position (so that I could pass the number to dd) or output next few bytes? For text files I use e.g .grep (grep -A 3 file pattern to output 3 lines after match). I would like