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


Reply via email to