Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

elif

  • elif
if [ $# = 2 ]
then
   echo there are 2 parameters
elif [ $# = 1 ]
then
   echo there is 1 parameter 
else
   echo The number of parameters is $#
fi