Jack L Stone writes: > Kindly appreciate help with how to grep (or similar) a list of words to > determine if any of them are in a file rather than grepping one word at a > time.
#v+ % egrep 'word1|word2|word3|...|wordn' filename.txt #v- 'word1|word2|word3|...|wordn' is the regular expression, so if you can minimize it better for you :). HTH -- Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 freebsd.org!ashish | http://people.freebsd.org/~ashish/ “There is nothing new to be discovered in physics now; All that remains is more and more precise measurement.” (Lord Kelvin, 1900)
pgpU33zn9d8xF.pgp
Description: PGP signature