bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep: document how to specify non printing characters


From: Dan Jacobson
Subject: grep: document how to specify non printing characters
Date: Wed, 22 Feb 2006 03:20:03 +0800

The challenge: grep for all non-ascii bytes.
$ LC_ALL=C grep '[\x80-\xFF]' file.
Well, firstly, the grep man page doesn't say how one represents
'[\x80-\xFF]' to grep. No word on if it is \x \0x 0x, or "sorry, no
way, so don't think about it", or even if one must just use the raw
character (works?). Of course there is no [^[:ascii:]].




reply via email to

[Prev in Thread] Current Thread [Next in Thread]