Hi,
I have a list of files kept inside a text file, each delimited by a new line. I want to be able to take grep, open the file contained on each line, and search it for a specific pattern.
ie: The text file I have (call it file.txt) looks something like this:
file1.dat
file2.dat
file3.dat
file4.dat
file5.dat
I want grep to do pattern matching on the file files inside, but not actually on file.txt itself. How can I do this?
Thanks ahead.
I have a list of files kept inside a text file, each delimited by a new line. I want to be able to take grep, open the file contained on each line, and search it for a specific pattern.
ie: The text file I have (call it file.txt) looks something like this:
file1.dat
file2.dat
file3.dat
file4.dat
file5.dat
I want grep to do pattern matching on the file files inside, but not actually on file.txt itself. How can I do this?
Thanks ahead.