total crap, it doesn't actually test if the file is there or not, it just tests if the command line argument is there. There's a giant f*cking differences.
Adam
I don't think you're using it quite right Young Padawan
ayw
if [ -e testfile ]; tests whether a file exists.
if [ -f testfile ]; only tests whether file is a regular file
David
No. From the man page: " -f filename True if filename exists and is a regular file.""