I have to write a script that can do this:
For each argument:
If the argument is the name of an empty file (has 0 bytes in it), the script removes the file.
If the argument is not a name of an empty file, the script should ignore that argument and process any remaining arguments.
If there are no arguments, the script should print out a warning message to the screen and exit.
But I receive this error
script8.sh: line 9: [: missing `]'
#!/bin/bash
if [ ! -s $1 ]
then
rm -rf $1
elif [ -f -s $1 ]
then
continue
else [ "$1" -eq 0 ] then #this is line 9
printf "Null"
exit
fi