Skip to content

Instantly share code, notes, and snippets.

@gotofritz
Last active November 13, 2016 17:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gotofritz/d67cce160e8e2b61491a5830b6a446ff to your computer and use it in GitHub Desktop.
Save gotofritz/d67cce160e8e2b61491a5830b6a446ff to your computer and use it in GitHub Desktop.
Bash scripting snippets
# gives you the directory in which the running script is
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# on os x, without the -e it won't print a newline but \n
echo -e "\n"
@gotofritz
Copy link
Author

gotofritz commented May 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment