bash if [ $# -ne 4 ] code example
Example 1: bash if else if
if [[ TEST-COMMAND ]]
then
STATEMENTS1
else
STATEMENTS2
fi
Example 2: if elif bqsh
if [ "$seconds" -eq 0 ];then
$timezone_string="Z"
elif[ "$seconds" -gt 0 ]
then
$timezone_string=`printf "%02d:%02d" $seconds/3600 ($seconds/60)%60`
else
echo "Unknown parameter"
fi