Skip to content

Instantly share code, notes, and snippets.

@nguyendangminh
Created December 22, 2014 07:53
Show Gist options
  • Save nguyendangminh/eb9d29ca87ab1c47e4c0 to your computer and use it in GitHub Desktop.
Save nguyendangminh/eb9d29ca87ab1c47e4c0 to your computer and use it in GitHub Desktop.
Gist for Bash
# Get path of directory in which the script is stored
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )
echo $DIR
# Use content of a file as argument
kill -9 $(<./thin.pid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment