#!bin/bash
for size in `ls`
do
if [ -f $size ] && [ `ls -l $size |gawk '{print $5}'` -eq 0 ]
then
`rm $size`
echo "$size if file delete"
fi
done
#!bin/bash
for size in `ls`
do
if [ -f $size ] && [ `ls -l $size |gawk '{print $5}'` -eq 0 ]
then
`rm $size`
echo "$size if file delete"
fi
done