I have a requirement to identify the list of files ( from past 7 days) having particular pattern - say from large number of archive files and print the filenames according to their file modified timestamp.
Any thoughts?
find /Source -name "TEST\_\*" -mtime -7 -print0| xargs -0 grep -l "pattern"
Got the filenames - need it to be sorted by its file modified timestamp.