grep using input file as pattern to search other file
Sometimes we need to use another file which contains a multiple line that we want to use as input pattern
example:
You have a.txt
And you want to search a
, c
, e
.
This case you can create input.txt
and use this command
If the input txt is a list of regex you can remove the -F
option.
Last updated