Last active
June 14, 2016 15:51
-
-
Save icaoberg/9f0da663686f0f9ec16fbf647b2c07ce to your computer and use it in GitHub Desktop.
Check if file img1.tif exists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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