Shell One Liner: Find all files of by date

Some shell scripts or processes create files in various subdirectories. A handy one-liner can help finding all files of a certain date.

find . -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort | grep "2012-07-27 "

Alternatively we could search all files of a month.
find . -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort | grep "2012-07-"

Leave a Reply




This site uses Akismet to reduce spam. Learn how your comment data is processed.