KoblentsBlog Photography
Contact About
Published Sep 30, 2016
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.
 
 
« November 2016 June 2016 »
© Copyright Koblents.com, 2012-2024