On 3/8/23 22:56, Robert Webb wrote:
So:
find . \( -path ./.dosemu -o -path ./.cache -o -path ./.wine \ -o -path ./.kodi \) -prune \ -o -name "*.jpg" \ -o -name "*.png" -newermt 2023-01-01 -print 2>&1 \ | grep -v 'Permission denied' | less -S
I didn't follow the thread in every detail, but the above looks like as if the two '-o name "..."' would have to be put into a bracket group. Otherwise find(1) would apply the -newermt and the action -print only to the PNGs. Indenting helps, too: find . \ \( -path ./.dosemu -o -path ./.cache -o -path ./.wine -o -path ./.kodi \) \ -prune -o \ \( -name "*.jpg" -o -name "*.png" \) \ -newermt 2023-01-01 \ -print 2>&1 \ | grep -v 'Permission denied' | less -S Have a nice day, Berny