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!)
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