Write a Shell Script to delete the zero sized file using if and for.
clear echo "Enter any file name: " read filenm if [ -e $filenm ] then echo $filenm" File exist"if [ -s $filenm ] then echo $filenm" File has size > 0"else rm $filenm echo $filenm" File is Deleted which has size = 0" fi else echo "File not exist" fi OUTPUT *********** [04mca58@LINTEL 04mca58]$ sh size.sh Enter any file name: del.sh del.sh File exist del.sh File is Deleted which has size = 0