counting 0 byte files
I did a web crawler to download some mp3 files, but some files had problems and not downloaded properly resulting in 0 byte files.
then to list those files:
find . -type f -size -1c
and to count those files:
find . -type f -size -1c | wc -l
and to delete those files:
find . -type f -size -1c -delete
Written by Vinicius Quaiato
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Terminal
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#