Пример. Проверка наличия параметров

if [ -z $2 ]
then
echo «No message parameter included.»
echo «Exit»
exit
fi

Pinterest