Koblents
→
Blog
Photography
Contact
About
Ches Koblents
»
Links
»
September 2016
»
Calling Directory in Bash
Calling Directory in Bash
Great one-liner for a script to get the directory it resides in -
1
DIR
=
"
$(
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
"
&&
pwd
)
"
Linked from the stackoverflow page where I found this.
Follow External URL ...
Ches Koblents
September 30, 2016
« Newer
Older »
© Copyright Koblents.com, 2012-2024