I have Sample file s1.txt like this:
Sample.log.54
Sample.log.56
Sample.log.57
Sample.log.58
Sample.log.59
Sample.log.110
Sample.log.113
Sample.log.114
Sample.log.115
Sample.log.116
Sample.log.117
Sample.log.118
Sample.log.119
Sample.log.120
Sample.log.121
Sample.log.122
Sample.log.112
Sample.log.123
Sample.log.124
Sample.log.140
In the folder i have many other files. but i need to grep particular string from the files that are listed in s1.txt. I should not read all the files which are present in the folder.