[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bad handling of + metachar in grep
From: |
Andreas Schwab |
Subject: |
Re: bad handling of + metachar in grep |
Date: |
Mon, 01 Dec 2008 16:22:24 +0100 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux) |
"Adolf Mathias" <address@hidden> writes:
> $ echo a | grep -o 'a+'
> $ echo 'a+' | grep -o 'a+'
If you want extended regexp syntax use -E.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."