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?
Shell Script – Find Directory of Script File in Unix
shellunix
shellunix
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?
Best Answer
In Bash, you should get what you need like this: