Adam wrote:
Phil M Perry wrote:
Thanks Mark, but it didn't seem to work. grep "\xEF" seems to match a
literal \xEF string, not a byte with that value. I also tried octal without
success, and single quotes instead double. Any other ideas?
If it's a character you can type in, like control-A, you can precede it with a control-V to indicate the next character should be taken literally. Single or double quotes are optional.

Would 'sed' be a possibility?  Doesn't that understand regexps?

BTW, thanks for your reply earlier today.  Oh well.

Adam

_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium
 Mar 7 - Web Hack-a-thon - SUNY Newpaltz
 Apr 1 - EC2 and Cloud Computer
 May 6 - TBD


You need a $ sign, as in
grep $'\x61' myfiles

Bob Burroughs
_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium
 Mar 7 - Web Hack-a-thon - SUNY Newpaltz
 Apr 1 - EC2 and Cloud Computer
 May 6 - TBD

Reply via email to