if [ test_command ]
then
fi
if [ test_command ]
then
else
fi
elif [ test_command ]
then
...
...
else (optional)
fi
done
...
...
*) (可选 - any other value)
commands_to_execute_for_no_match
esac
if [ test_command ]
then
fi
if [ test_command ]
then
else
fi
elif [ test_command ]
then
...
...
else (optional)
fi
done
...
...
*) (可选 - any other value)
commands_to_execute_for_no_match
esac