Get current script path
Get the path of the current script in shell scripting
SCRIPT_PATH=$(realpath "$0" | sed 's|\(.*\)/.*|\1|')
echo $SCRIPT_PATH
Get the path of the current script in shell scripting
SCRIPT_PATH=$(realpath "$0" | sed 's|\(.*\)/.*|\1|')
echo $SCRIPT_PATH