This question already has an answer here:
- Reading grep patterns from a file 1 answer
Suppose I have two files named
b.txt. Is there any way to use all the contents of file
a.txt to use as patterns for grep command if I want to search in file
General format of
grep 'pattern' 'filename'