Friday, January 11, 2013

awk deleting files with 0 length

 ls -lrt | awk '{if ($5 ==0 && $9 !="") print $9}' | xargs rm

No comments:

Blog Archive