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

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

Re: grep


From: Chris F.A. Johnson
Subject: Re: grep
Date: Sun, 23 May 2004 19:43:05 -0400 (EDT)

On Sat, 22 May 2004, Alexander James Mattam wrote:

Sir,
      grep [:digit:]    what should it return???
                                     Its not returning lines containing  only 
digits.

   It will return lines containing any of these 5 characters:

     : d i g t

   grep '[[:digit:]]'  will return all lines containing a digit.

--
        Chris F.A. Johnson                      http://cfaj.freeshell.org
        =================================================================
                Everything in moderation -- including moderation




reply via email to

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