[Top][All Lists]

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

Re: say if grep can find non-ascii

From: Claudio Fontana
Subject: Re: say if grep can find non-ascii
Date: Tue, 7 Mar 2006 07:50:28 -0800 (PST)

--- Paul Eggert <address@hidden> wrote: 

> Julian Foad <address@hidden> writes:
> > I don't think the Grep manual should say
> explicitly how to do that
> > particular thing.
> I disagree.  I think it'd be useful to have a simple
> pattern that
> tests for ASCII characters (i.e., bytes in the range
> 00 through 7F).

I had good results using the bash quoting.
Example: (find all lines containing bytes between 0x80
and 0xff)

$ grep [$'\x80'-$'\xFF'] *.txt

However the character 0x0 cannot be explicitly
specified for obvious argv reasons.


Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive 

reply via email to

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