I have a script (multirun.sh) which launches the program bsim_em.x or bsim_es.x depending on the value entered from the screen:
> multirun.sh 1 (executes bsim_em.x)
> multirun.sh 2 (executes bsim_es.x)
which, simplifying, I do with the following lines in the multirun.sh script:
if [ "$1" = "1" ]
then
./bsim_em.x
fi
if [ "$1" = "2" ]
then
./bsim_em.x
fi
how could I write an output error if $1 is different from 1,2 or is not defined? Thanks in advanced