Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
File with usefull shell commands
# 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment