Solved Feeding patterns into grep from a file

I'm tryihng to feed search patterns into grep from a file, something along the lines of

cat search-pattern-file | grep search-file

but can't figure a way of doing in spite of reading a guide which suggests the use of xargs, which I can't follow.

An example would be useful if anyone has one.
 
from man grep
-f FILE, --file=FILE
Obtain patterns from FILE, one per line. The empty file
contains zero patterns, and therefore matches nothing.
 
Back
Top