Issue
I am running the following command in a data directory:
$ grep -r '0xdataH2O' ./
There are a lot of files in this folder, and I'd only like to grep recent files. Is there a way to do something like the following:
$ grep -r '0xdataH2O' ./<$files_modified_within_last_two_days>
Solution
find . -type f -mtime -2 -exec grep -H 0xdataH20 {} \;
Answered By - William Pursell Answer Checked By - Senaida (WPSolving Volunteer)