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

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

Re: grep


From: Dan Hipschman
Subject: Re: grep
Date: Wed, 25 Apr 2007 14:37:32 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed, Apr 25, 2007 at 08:33:15PM +0300, Vladislav Gula wrote:
> 
> echo "alias: something" | grep '^[[:alnum:]]:' - not work.
> 

That will only match *one* alphanumeric character followed by a colon.
Try

        echo "alias: something" | grep '^[[:alnum:]][[:alnum:]]*:'

or something along those lines.  (You can use the '+' operator to
simplify that with egrep.)





reply via email to

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