grep | grep | grep .... better way ?

Nicolai Spohrer nicolai at xeve.de
Sat Sep 22 20:27:24 UTC 2007


<bash>
echo "I
am
foo
bar" | egrep -v "(foo|I)"
# returns:
am
bar </bash>

should do it ;-)

greetings

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070922/547f060f/attachment.sig>


More information about the ubuntu-users mailing list