[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep bug ?
From: |
Alain Magloire |
Subject: |
Re: grep bug ? |
Date: |
Sun, 29 Jul 2001 15:08:33 -0400 (EDT) |
>
> well, I'm ot sure if this is a bug ...
> but it's something that's bugging me, and I'm sure it bugs other
> shell scripters.
> grep {foo,bar} file
> that works fine, it greps all lines containing foo and bar
Yes, suprisingly
# /bin/echo '{foo,bar}' | grep '{foo,bar}'
{foo,bar}
#
Will work. But I have doubt if it is what you have in mind
in term of regular expression.
> but when doing:
> grep -v {foo,bar} file
> it doesnt work at all ...
What does not work?
I have no idea what you are trying to achieve.
> Any other syntax for that operation, is it bug or just not possible
> with grep ?
Read grep documentation. GNU grep comes with an info file
that explains regexes and also contains examples.
> (if the later .... please do impliment it)
>
Once you understand the behaviour of grep, send patches
they are always welcome to improve GNU grep.
> Thanks.
>
> Billy Wideling.
>
--
alain
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: grep bug ?,
Alain Magloire <=