[TriLUG] How to look for 0xFE using grep?

Michael Rothwell michael at rothwell.us
Sun Mar 11 20:13:40 EDT 2007


grep -a `perl -e "print chr(0xFE)"` $filename

On Mar 11, 2007, at 6:42 PM, Steve Litt wrote:

> Hi all,
>
> I'm trying to find lines with binary 254 characters, and cannot  
> find them.
>
> I've tried
>
> grep "\0xFE" infile
>
> That produced no output, even though there are many lines with  
> binary 0xFE, at
> least according to Vim.
>
> Thanks
>
> STeveT
>
> Steve Litt
> Author: Universal Troubleshooting Process books and courseware
> http://www.troubleshooters.com/
> -- 
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/ 
> trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/




More information about the TriLUG mailing list