📜  bash if else if - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:36.740000             🧑  作者: Mango

代码示例3
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