Shangrila
Mind stream
Tuesday, September 22, 2015
Reliably determine a script's directory path in bash
cd $(dirname $0); DIR=$PWD; cd - >/dev/null
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment