|
File existence problem
I have a problem with file existence in shell. that is the code..
#!/bin/sh
if [-f example.txt]
then
echo "File Exist!!"
else
echo "Error"
fi
but it gives an error in 2nd line. Did i write example.txt wrong? Is there any (`) or (") missing? or something like that?
|