Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Last active June 14, 2016 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icaoberg/9f0da663686f0f9ec16fbf647b2c07ce to your computer and use it in GitHub Desktop.
Save icaoberg/9f0da663686f0f9ec16fbf647b2c07ce to your computer and use it in GitHub Desktop.
Check if file img1.tif exists
FILE=img1.tif
if [ -f $FILE ]; then
echo "File "$FILE" exists."
else
echo "File "$FILE" does not exist."
exit -1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment