B balanga Nov 13, 2022 #1 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.
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.
covacat Nov 13, 2022 #2 from man grep -f FILE, --file=FILE Obtain patterns from FILE, one per line. The empty file contains zero patterns, and therefore matches nothing.
from man grep -f FILE, --file=FILE Obtain patterns from FILE, one per line. The empty file contains zero patterns, and therefore matches nothing.