On Thu, 9 Mar 2023 00:43:10 +0100, Bernhard Voelker <mail@bernhard-voelker.de> wrote:
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.
Carlos' intent was in fact to exclude the "*.jpg" files because they were adding a lot of noise to the output. Unfortunately, when I added the -print to limit the output to just the PNG sub-expression, I didn't realize that the JPEG exclusion is superfluous. That line above can just be deleted. -- Robert Webb