I\'ve used the following script to see if a file exists:
#!/bin/bash FILE=$1 if [ -f $FILE ]; then echo \"File $FILE exists.\" else echo \"File $
The test thing may count too. It worked for me (based on Bash Shell: Check File Exists or Not):
test
test -e FILENAME && echo "File exists" || echo "File doesn't exist"