Write a Bash shell script program that removes all zero length ordinary files in the directory

image
Write a Bash shell script program that removes all zero length ordinary files in the directory passed as an optional argument. If you do not specify the directory argument, the script uses the present working directory as the default argument. Do appropriate exception handling in your script. Show a few sample runs of your script (test cases).


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki