lilingjie2015 发表于 2018-8-23 06:59:09

shell select case-Biotech

  select vi in "ifconfig -a" "hostname" "date" "quit"
  do
  case $vi in
  "ifconfig -a") /sbin/ifconfig -a;;
  "hostname") hostname;;
  "date") date;;
  "quit") exit 0;;
  esac
  break
  done

页: [1]
查看完整版本: shell select case-Biotech