Answers for "source script locatin"

0

source script locatin

mention these two line inside your main script, 

SCRIPT=`realpath $0`
SCRITPATH=`dirname $SCRIPT`

other script should be in the same folder

to use them,

bash $SCRITPATH/your_sub_script.sh (in main script)
Posted by: Guest on March-30-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language