>>% egrep 'word1|word2|word3|...|wordn' filename.txt >Thanks for the replies. This suggestion won't do the job as the list of >words is very long, maybe 50-60. This is why I asked how to place them all >in a file. One reply dealt with using a file with egrep. I'll try that.
Gee, 50 words, that's about a 300 character pattern, that's not a problem for any shell or version of grep I know. But reading the words from a file is equivalent and as you note most likely easier to do. R's, John _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"