• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Using grep to pattern match a list of files

Yohhan

Senior member
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.
 
Back
Top