xinghe0 发表于 2018-8-21 07:47:12

shell 编程if条件判断与if 真假判断

  真假判断                     条件判断                        多重条件判断
  if cmd ; then               if [ statement ]; then         if [ statement ] && cmd ;then
  cmd statement                cmd statement                  cmd statement
  else                        else                           else
  cmd statement                cmd statement                  cmd statement
  fi                        fi                           fi

页: [1]
查看完整版本: shell 编程if条件判断与if 真假判断