|
Are you looking for this info ?
man grep :
-f pattern_file
Read one or more patterns from the file named by the
path name pattern_file. Patterns in pattern_file are
terminated by a NEWLINE character. A null pattern can
be specified by an empty line in pattern_file. Unless
the -E or -F option is also specified, each pattern
will be treated as a basic regular expression.
You can save all patterns in a file line by line and then
grep -f pattern_file Actual_file
|