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 fil
Inspired by blueyed’s answer
read < <(readlink -f $0 | xargs dirname) cd $REPLY