Grepping a list of words

Arthur Chance freebsd at qeng-ho.org
Thu Aug 12 11:36:00 UTC 2010


On 08/12/10 00:00, Jack L. Stone wrote:
> 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.

fgrep, aka grep -F

A snippet from "man grep":

        -F, --fixed-strings
               Interpret  PATTERN as a list of fixed strings, separated
	      by newlines, any of which is to be matched.



More information about the freebsd-questions mailing list