Find, based on Time

March 17, 2023 note-to-self

GAME. CHANGER.

find . -newerBt ‘5 minutes ago’ -type f -not -path “*/cache/*” -not -path “*/vendor/*” -not -path “*/.git/*” -print`
find ./encode/ ./content/ -newerBt ‘5 minutes ago’ -type f -not -path “*/cache/*” -not -path “*/vendor/*” -not -path “*/.git/*” -exec ls -la {} \;

newerBt is “birth time” where newerCt is “change time” which doesn’t find things being copied around. WOOHOO!!!

(newermt!)

https://pieces-of-code.com/en/guide/howto/linux-find-by-date.html#find-files-based-on-the-last-n-days

Finding files that changed in the last month: find . -newerct ‘1 day ago’ -not -path “*/cache/*” -not -path “*/runtime/*” -not -path “*/.git/*” -not -path “*/docker/*” -not -path “*/logs/*” -print