BashFAQ - Greg's Wiki
How do I determine the location of my script? I want to read some config files from the same place. There are two prime reasons why this issue comes up: either you want to externalize data or configuration of your script and need a way to find these exter...