find . -type f -size 0 -print0 | xargs -0 rm -f
find . -type f -size 0 -print0 | xargs -0 rm -f
Tags: delete, files, find, length, linux, zero
This entry was posted on 8 November 2011, 11:22 pm and is filed under Reminders. You can follow any responses to this entry through RSS 2.0. You can skip to the end and leave a response. Pinging is currently not allowed.
Arclite theme by digitalnature | powered by WordPress
#1 by mitchenall on 9 November 2011 - 10:22 am
Quote
How about…
find . -type f -size 0 -delete
?