in reply to Re^4: UNIX command - remove 0 byte file
in thread UNIX command - remove 0 byte file
find /path/ -size 0 | perl -e 'while(<>) { chop; s/^(.*\s.*)$/\"$1\"/; + print "$_\n"; }' | xargs -n <whatever-filecount-limit> rm
-M
Free your mind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: UNIX command - remove 0 byte file
by Anonymous Monk on Sep 23, 2005 at 14:15 UTC | |
by Moron (Curate) on Sep 23, 2005 at 15:05 UTC | |
by Anonymous Monk on Sep 23, 2005 at 15:27 UTC |