I want to create a shell script that is should call one of two shell scripts based on the parameters passed.
For Example,
If -i & -s is exist in parameters list it should call script_1.sh
If -j is exist in parameters list it should call script_2.sh
script_call.sh should be like below,
while getopts :i:s:j OPTIONS
do
case ${OPTIONS} in
i) INI_FILE=${OPTARG};;
s) INI_SECTION=${OPTARG};;
#both -i & -s parameters passed, so call script_1.sh
#script_1.sh -i ini_file.txt -s ini_section
j) JOB_KEY=${OPTARG};;
#only -j parameter is passed, so call script_2.sh
#script_2.sh -j 123
esac
done