Hi all experts,
I have a script and here is a part of the script, I am still a learner and don't understand this, pls help to explain what this part of script is trying to do ?
if [ $# -ge 2 ]; then
if [ "$2" != "x" ]; then
CONSTR=$2; export CONSTR
MOLE=$1; export MOLE
shift; shift
#echo $$ $0 $MOLE x $*
$0 $MOLE x $* &
exit
fi
#
# Parse the arguments passed
#
shift; shift
fi
Thank you.
I have a script and here is a part of the script, I am still a learner and don't understand this, pls help to explain what this part of script is trying to do ?
if [ $# -ge 2 ]; then
if [ "$2" != "x" ]; then
CONSTR=$2; export CONSTR
MOLE=$1; export MOLE
shift; shift
#echo $$ $0 $MOLE x $*
$0 $MOLE x $* &
exit
fi
#
# Parse the arguments passed
#
shift; shift
fi
Thank you.