From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from home.rdsnet.ro ([193.231.236.40] helo=relay1.home.ro) by speech.braille.uwo.ca with smtp (Exim 3.35 #1 (Debian)) id 17FRtQ-0007Me-00 for ; Tue, 04 Jun 2002 23:55:28 -0400 Received: (qmail 7893 invoked from network); 5 Jun 2002 03:55:31 -0000 Received: from unknown (HELO smtp) (213.233.111.183) by s1.home.ro with SMTP; 5 Jun 2002 03:55:31 -0000 Message-ID: <017301c20c45$2519cdc0$b76fe9d5@microsoft.com> From: "Octavian Rasnita" To: References: Subject: Re: Deleting all empty files with a single command? Date: Wed, 5 Jun 2002 05:04:59 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: speakup-admin@braille.uwo.ca Errors-To: speakup-admin@braille.uwo.ca X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: speakup@braille.uwo.ca List-Help: List-Post: List-Subscribe: , List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: Thank you. This is very helpful. Teddy, orasnita@home.ro ----- Original Message ----- From: "Ari Moisio" To: Sent: Tuesday, June 04, 2002 8:59 AM Subject: Re: Deleting all empty files with a single command? > Hi! > > Octavian Rasnita 03.06.02: > > >I want to delete all empty files from a directory with a single command. > >What switch should I use to "select" all the empty files? > > In command line you can write: > find . -maxdepth 1 -type f -size 0 -exec rm {} \; > > ...well: find is a command to find files for certain criteria. First > dot means start from current directory, -maxdepth 1 means not recursing > into subdirectories, -type f means only ordinary files, -size 0 is quite > obvious and -exec will launch rm to erase file if all previous > conditions are met. {} in exec is replaced by file name and \; means end > of -exec command. > > To see more options see find man page:-) > > -- > Mr. Ari Moisio, Niittykatu 5, 41160 Tikkakoski, +358-40-5055239 > ari.moisio@iki.fi http://www.iki.fi/arimo PGP-keyID: 0x3FAF0F05 > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup >