I\'ve a directory with many number of 0 byte files in it. I can\'t even see the files when I use the ls command. I\'m using a small script to delete these files but sometime
You can use the following command:
find . -maxdepth 1 -size 0c -exec rm {} \;
And if are looking to delete the 0 byte files in subdirectories as well, omit -maxdepth 1 in previous command and execute.
-maxdepth 1