I am storing all the fil names from a directory into a file "filenames.txt" like using awk and cut commands
base/src/file1.sc
base/src/file2.sc
base/src/file3.sc
base/src/file4.sc
base/src/file5.sc
base/src/file6.sc
base/src/file7.sc
base/src/file8.sc
base/src/file9.sc
and then I need to pick the 1st line from this file and need to grep for a particular pattern inside this and need to continue till the last record in file "filenames.txt", but I am stuck not knowing how to process each record from this file "filenames.txt"... I appreciate your effort in helping me..