Thursday, July 18, 2019

Find a file type, order by date.

Under MacOS, finding my .tex files and showing newest first:
find . -type f -name "*.tex" -exec stat -f "%Sm %N" -t /
      "%Y%y%m%d%H%M" {} \; | sort -r | less

No comments:

Post a Comment