In case you have files that are located in the same directory as the script that are read by the script, and you are to lazy to make it a configuration variable 🙂
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`
cd $SCRIPTPATHIn case you have files that are located in the same directory as the script that are read by the script, and you are to lazy to make it a configuration variable 🙂
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`
cd $SCRIPTPATHSimon Holmbring
Disclaimer: The information provided on this blog is for general informational and educational purposes only. All views and opinions expressed are those of the author and do not represent the opinions of any organization or employer. While efforts are made to ensure accuracy, no guarantee is given that the information is complete or up to date. The author is not responsible for any losses, injuries, or damages resulting from the use or reliance on this blog’s content. Readers are encouraged to verify information independently before making decisions based on it.

The information provided on this blog is for general informational and educational purposes only.
All views and opinions expressed are those of the author and do not represent the opinions of any organization or employer.
While efforts are made to ensure accuracy, no guarantee is given that the information is complete or up to date. The author is not responsible for any losses, injuries, or damages resulting from the use or reliance on this blog’s content.
Readers are encouraged to verify information independently before making decisions based on it.