Find 'pattern' in all files above some_file in the current directory and its subdirectories recursively:
find -newer some_file -type f -exec grep 'pattern' {} +
You can specify the timestamp directly in the format date -d and use other find tags, for example, -name , -mmin .
A list of files can also be generated by your build system if find too slow.
More specific tools, such as ack , etags , GCCSense , can be used instead of grep .
source share