MESSAGE
DATE | 2001-12-19 |
FROM | Ruben Safir
|
SUBJECT | Subject: [hangout] Re: [nylug-talk] easy way to delete specific type of files on disk
|
From owner-hangout-desteny-at-mrbrklyn.com Wed Dec 19 12:26:29 2001 Received: from mail.rm-cpa.com (mail.rm-cpa.com [216.112.229.114]) by www2.mrbrklyn.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id fBJHQTc20161 for ; Wed, 19 Dec 2001 12:26:29 -0500 Received: from inflexible.cnchost.com (inflexible.cnchost.com [207.155.252.24]) by mail.rm-cpa.com (8.9.3/8.9.3) with ESMTP id MAA21162; Wed, 19 Dec 2001 12:21:17 -0500 Received: from www2.mrbrklyn.com (dsl254-112-136.nyc1.dsl.speakeasy.net [216.254.112.136]) by inflexible.cnchost.com id LAA19273; Wed, 19 Dec 2001 11:09:00 -0500 (EST) [ConcentricHost SMTP MX 1.27] Errors-To: Received: (from mdom-at-localhost) by www2.mrbrklyn.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) id fBJG67C19309 for hangout-desteny; Wed, 19 Dec 2001 11:06:07 -0500 Received: from www2 (localhost [127.0.0.1]) by www2.mrbrklyn.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id fBJG62c19304; Wed, 19 Dec 2001 11:06:02 -0500 Date: Wed, 19 Dec 2001 11:06:02 -0500 From: Ruben Safir To: jim-at-alliedtours.com, hangout-at-nylxs.com Cc: nylug-talk-at-nylug.org Subject: [hangout] Re: [nylug-talk] easy way to delete specific type of files on disk Message-ID: <20011219110602.A19264-at-www2.mrbrklyn.com> References: <000601c1885e$a9692c30$fd624ecf-at-morningside.edu> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: ; from jim-at-alliedtours.com on Wed, Dec 19, 2001 at 10:31:09 -0500 X-Mailer: Balsa 1.2.3 Sender: owner-hangout-at-mrbrklyn.com Precedence: bulk Reply-To: Ruben Safir List: New Yorkers Linux Scene Admin: To unsubscribe send unsubscribename-at-domian.com to hangout-request-at-www2.mrbrklyn.com X-Keywords: X-UID: 19141 Status: RO Content-Length: 1695 Lines: 59
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....
|
|