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

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

grep: -o does not work correctly with quantifications


From: Justin Pryzby
Subject: grep: -o does not work correctly with quantifications
Date: Sat, 10 Dec 2005 20:23:36 -0500
User-agent: Mutt/1.5.11

Please see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=293267>
where it is documented that grep -o fails with quantifications:

$ echo "baab" | grep -o "a*"
$ echo "baab" | grep -o "a\{0,2\}"
$ echo "baab" | grep -o "a\{1,2\}"
aa

-- 
Clear skies,
Justin




reply via email to

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