Created
January 25, 2013 01:05
-
-
Save yasarix/4630606 to your computer and use it in GitHub Desktop.
Check if file exists
This file contains hidden or 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
#!/bin/bash | |
if [ ! -f /tmp/foo.txt ] | |
then | |
echo the file does not exist | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment