hello..i am doing a script for checking a file/folder if it exist tin a directory.
the script is in root directory and it looks like this
Code:
#!/bin/bash
if [ -f /root/abc.sh ]; then
echo "file found"
else
echo "file not found"
fi
i got two error:
unexpexted EOF while looking matching
syntax error: unexpected end of file
please help.