UNIX & Linux programs
Programin UNIX to identify all zero byte files in the current directory and delete them
Write a shell script to identify all zero byte files in the current directory and delete them. Before preceding with deletion the shell script should get a confirmation from the user.
for i in `ls`
do
if [ ! -s $i ]
then
echo "file to delete $i"
rm -i $i
fi
done