[Top][All Lists]
[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.)
- grep, Vladislav Gula, 2007/04/25
- Re: grep,
Dan Hipschman <=
- Re: grep, Bauke Jan Douma, 2007/04/25
- Re: grep, Andreas Schwab, 2007/04/25
- Message not available