I have an entry in my crontab to delete superfluous files from my unwatched videos directory. Originally it was just used to remove "*.nfo" files, but now I have additional file extensions that I want to delete. The new entry isI started out by surrounding the -iname parameters with parentheses like this \( ... \) but got errors, so I removed the parentheses. I've run the find part of the command from the shell, and it returns everything I want to delete, but the -exec rm is not deleting the files.Code:find /home/shares/video/unwatched/ -iname "*.jpg" -o -iname "*.tbn" -o -iname "*.nfo-orig" -exec rm -rf {} \;
I'm confused!
Bookmarks