com zsh
:
grep -- foo **/*(D.om)
Com ferramentas GNU:
find . -type f -printf '%T@\t%pgrep -- foo **/*(D.om)
' |
tr '\nfind . -type f -printf '%T@\t%p%pre%' |
tr '\n%pre%' '%pre%\n' |
sort -rg |
cut -f2- |
tr '\n%pre%' '%pre%\n' |
xargs -r0 grep foo
' '%pre%\n' |
sort -rg |
cut -f2- |
tr '\n%pre%' '%pre%\n' |
xargs -r0 grep foo