Monday, May 4, 2015

Delete files with size 0 in Unix

 If you are writing a script and execute it and something's not working, you may end up with a lot of empty files that you want to delete. 
Use a simple find command with the -size argument

find . -size 0 -delete

No comments:

Post a Comment