Skip to content

Instantly share code, notes, and snippets.

@tai2
Last active October 4, 2015 04:37
Show Gist options
  • Save tai2/2578178 to your computer and use it in GitHub Desktop.
Save tai2/2578178 to your computer and use it in GitHub Desktop.
echo self absolute pth
#!/bin/sh
THIS=${0#$(dirname $0)/}
echo $PWD/$THIS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment