Skip to content

Instantly share code, notes, and snippets.

@yasarix
Created January 25, 2013 01:05
Show Gist options
  • Save yasarix/4630606 to your computer and use it in GitHub Desktop.
Save yasarix/4630606 to your computer and use it in GitHub Desktop.
Check if file exists
#!/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