[lug] grep question
Scott A. Herod
herod at interact-tv.com
Tue Jan 29 12:41:21 MST 2002
Hello,
A quick grep question: I've got a file named "spam" that may contain
"hello", "goodbye", both or neither.
I need a grep command that returns true if either or both is present.
The grep man page suggests that you can use the infix operator |
(the pipe symbol) but I can't figure out the syntax. Does anyone
know how?
I basically want something like:
grep 'hello!good' spam
Thanks,
Scott
More information about the LUG
mailing list