I would like to write a scirpt a.sh that it first checks the first parameter of the input. If it fulfill some condition ,then run an executable program b by using all the parameter.
ie.
> ./a.sh 10 20 30 40 50
Then a.sh first checks the first parameter, 10, if it mathes the requirement, then a will call program b to run
> b 10 20 30 40 50
I do not know how many parameter will be passwd into b. Therefore, I cannot use $1, $2......
Is there any solution?