Created
March 6, 2014 18:49
-
-
Save lslucas/9396753 to your computer and use it in GitHub Desktop.
Check if file exists in bash/terminal/unix
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
[ -f /etc/hosts ] && echo "Found" || echo "Not found" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment