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本文共 213 字,大约阅读时间需要 1 分钟。
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转载于:https://blog.51cto.com/biott/1092356