Linux – Skip parameter in Linux bash

bashlinuxshell

I need to write a shell-script which handles 3 parameters ($1 $2 and $3). Within the bash I have to skip parameter 2 (I'm actually writing something like ./script.sh para1 para3).

The script is OK. But I can't skip the second parameter. How do I skip this one?

Best Answer

At last I've found it:

./script.sh "para1" "" "para3"

My teacher should be happy with this. He won't get anything else from me.

Related Question