Petr's Notes

Monday, November 19, 2012

How to find out bash script location

http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in

DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Posted by Unknown at 17:22 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: bash, scripting
Newer Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2017 (1)
    • ►  August (1)
  • ►  2014 (1)
    • ►  May (1)
  • ►  2013 (3)
    • ►  February (1)
    • ►  January (2)
  • ▼  2012 (1)
    • ▼  November (1)
      • How to find out bash script location

Labels

  • ACL (1)
  • backpacking (1)
  • bash (1)
  • climbing (1)
  • computer graphics (1)
  • linux (1)
  • opengl (1)
  • scripting (1)
  • stove (1)
Picture Window theme. Powered by Blogger.