Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
File with usefull shell commands
#!/bin/bash
# fail on first error
set -e
# cd to the dir containing the script
cd $(readlink -f $(dirname $0))
# if file exists...
if [ -f $file ];then
echo "file exists: $file"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment