I have a file that contain a list of files. How can I use grep to search the files in the list for a specific pattern?
grep 'specific pattern' $(< listoffiles.lis )
assuming you have a modern shell.
for f in `cat listoffiles`
do
grep "specific pattern" "$f"
done
depending on what you want from the grep, you might want a "grep -l..."