unix shell script find out which directory the script file resides?

Posted by goodwill on Stack Overflow See other posts from Stack Overflow or by goodwill
Published on 2008-10-28T08:19:24Z Indexed on 2010/03/18 20:11 UTC
Read the original article Hit count: 303

Filed under:
|

Basically I need to run the script with paths related to the shell script file location, how can I change the current directory to the same directory as where the script file resides?

© Stack Overflow or respective owner

Related posts about shell-scripting

Related posts about linux