RE: 0 byte files removing


Subject: RE: 0 byte files removing
From: Leif Sawyer (lsawyer@gci.com)
Date: Wed Jan 08 2003 - 15:16:56 AKST


jonr@destar.net <jonr@destar.net> [030108 11:29]:
>
> Is there a simple way to remove a directory full of 0 byte
> files? I have a directory that has some files I would like
> to keep that have file sizes but there are others that have
> no size in the same directory and I would like to remove them
> all at the same time rather than doing it one at a time.

find / -type f -a -empty -exec rm -f {} \;
or
find / -type f -a -size 0b -exec rm -f {} \;

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Wed Jan 08 2003 - 15:17:02 AKST