Skip to content

Instantly share code, notes, and snippets.

@us10096698
Created October 25, 2013 00:38
Show Gist options
  • Save us10096698/7147610 to your computer and use it in GitHub Desktop.
Save us10096698/7147610 to your computer and use it in GitHub Desktop.
Get this Script's own Absolute Directory Path (Using `readlink -f` Command).
#!/bin/sh
mypath=`readlink -f $0`
mydir=`dirname $mypath`
echo $mypath
echo $mydir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment