I don't know why I can't figure this out. What if I want to remove all files starting with thmb from 217 subdirectories? i.e. /pics/1/thmb1.jpg /pics/2/thmb15.jpg /pics/3/thmb42.jpg I tried rm -rf thmb* but that didn't work. Suggestions? (sorry for such a newb question)
The files are in different directories, so this will not work. If you want to delete all files, you will either have to enter every directory manually or you delete the 1 2 3 directories and files.
what about mv? could you mv all those files to a single directory and then delete that directory? There has to be a way to do this. If you can do it with windows you have to be able to do it with linux. (one would think) or is this a feature you lose in the name of security?
You could write a script that loops through the directories and deletes all the image files. The /usr/local/sbin/webstats script on http://www.howtoforge.com/apache_log_splitting_vlogger should give you the idea.