[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Man page - mistaken instructions?
From: |
Fernando Basso |
Subject: |
Man page - mistaken instructions? |
Date: |
Tue, 04 Jan 2011 13:45:06 -0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101230 Lanikai/3.1.7 |
I'm Fernando Basso from Brazil, and I run Arch Linux.
$ grep --version
grep (GNU grep) 2.7
man help says:
{,m} The preceding item is matched at most m times.
But that does not work:
$ echo 'users' | grep 'users\{,1\}'
grep: malformed repeat count
But this work:
$ echo 'users' | grep 'users\{0,1\}'
users
Shouldn't the man page say:
"{0,m} The preceding item is matched at most m times." ?
Thanks for your attention.
Sincerely,
Fernando
- Man page - mistaken instructions?,
Fernando Basso <=