Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ##########################################################
- ## the purpose of this script is to find those stupidly ##
- ## useless annoying Zero Byte files and delete them ##
- ## that are generated by software that doesn't even use ##
- ## them, or leaves residual empty files on your system. ##
- ## ##
- ## This can cause problems when backing up your files, ##
- ## because the software to back them up doesn't know ##
- ## what to do with these empty zero byte files. You ##
- ## need to run this with 'sudo' if it calls for it. ##
- ##########################################################
- lns=`vdir -R *.* $dir| awk '{print $8"\t"$5}'`
- temp=""
- for file in $lns
- do
- if test $file = "0"
- then
- printf $temp"\t"$file"\n"
- fi
- temp=$file
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement