I have the following files:
file1.txt
file2.txt
file3.txt
...
I want to search inside these files using grep
but my search must be limited on files its date is today and 3 day befor
for example if file1.txt
is created in this day(16/09/2017)
and file2.txt
is created in (14/09/2017)
then grep
search only in this two files.
I want to do that command in shell script.
I only know how to search in files using one line command such
grep wordToSearch file*