I can tell you this much:
This line will print only those files in a directory specified by the date argument to sed:
Code:
ls -lh | awk '{print $6 " " $9}' | sed -n '/Jun/p'
Where "Jun" is the month you want to search for.
You could then pipe this output to a file:
Code:
ls -lh | awk '{print $6 " " $9}' | sed -n '/May/p' | awk '{print $2}' >> file_list
And we have just the names of the files you specify by month in a file.
You then should be able to do:
NOTE: those are
back quotes around `cat file_list`
I'd test it first on "dummy data" to make sure I didn't screw up!