On Fri, 2008-11-07 at 21:36 +1000, Simon Ives wrote: > I've just copied a directory from my wife's Windows XP box to my Hardy > file server in preparation to reformat her PC to run Ubuntu solely. As > I copied the entire directory (her Windows XP user directory) along came > some annoying and unnecessary Windows files, specifically a whole heap > of files called Thumbs.db. I'm looking for a way to delete ALL of the > Thumbs.db files from ALL of the sub-directories in as few commands as > possible. > > There are about 700 directories in the "My Music" directory alone, most > containing Thumbs.db files. I don't really want to have to enter each > directory and remove them individually.
First bit of advice - never trust anyone telling you to run "rm -rf" Second bit of advice - trust me 3rd bit run this find /path/to/windows-files -iname thumbs.db -exec rm -rf {} \; Just change the /path/to/windows-files to the directory where all the files are. If something goes wrong, reread my first bit of advice :) Cheers Dave -- ubuntu-au mailing list ubuntu-au@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-au