I had a question using the "-o" option in find to find multiple extensions.
find "DIRECTORY" -type f -name \*.jpg -o -name \*.html -mtime +95
In the above I want to delete all files of two extensions that are older than a certain time.
By using -o
to list multiple names, does the -mtime
only apply to the second or are older jpgs also excluded?
Thanks