MESSAGE
DATE | 2001-12-19 |
FROM | Ruben Safir
|
SUBJECT | Subject: [hangout] Re: [nylug-talk] easy way to delete specific type of files on disk
|
find / -name "*.EML" -exec rm -f '{}' ';'
But BE CAREFUL for what you wish for.
Make a list first and see what it is
find / -name "*.EML" -print > ./discovery
Ruben
On 2001.12.19 10:31:09 -0500 Jim Suto wrote: >> Hi, >> >> I was just wondering, is there an easy way that I can delete all the >> files >> with a certain extension on a file system? Someone got the nimda virus >> on >> their Windows PC and the SAMBA shares on our linux machine have .EML >> files >> all over. Anyway, my thought was to use the locate command to find all >> the >> files with that extension and then prepend the "rm" command to all the >> paths >> that came up. Some of the filenames have spaces in them so I am not sure >> this would work or how I would have to script it. Is this the best way >> or >> does someone have a better idea? >> >> thanks, >> Jim >> >> >> >> _______________________________________________ >> nylug-talk mailing list >> nylug-talk-at-nylug.org >> http://herzl.nylug.org/mailman/listinfo/nylug-talk >> -- __________________________
Brooklyn Linux Solutions __________________________ http://www.mrbrklyn.com - Consulting http://www.brooklynonline.com - For the love of Brooklyn http://www.nylxs.com - Leadership Development in Free Software http://www.nyfairuse.org - The foundation of Democracy http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from around the net http://www2.mrbrklyn.com/mp3/hooked.mp3 - Spring is coming.... http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn....
1-718-382-5752
____________________________ New Yorker Linux Users Scene Fair Use - because it's either fair use or useless....
|
|