try this: find /path/to/directory -name "Thumbs.db" -delete
or this: find /path/to/directory -name "Thumbs.db" -print | xargs rm Lisa 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. > > Thanks. > -- > > Simon Ives > > [EMAIL PROTECTED] > www.simonives.info > > Please consider the environment before printing this email or any > attachments. > > > -- WebLinux - Linux live on the web! http://weblinux.ltmnet.com -- ubuntu-au mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-au
