编写一个弹出式菜单的shell程序 实现以下五个操作

时间:2016-02-14 16:40:37
【文件属性】:
文件名称:编写一个弹出式菜单的shell程序 实现以下五个操作
文件大小:1KB
文件格式:SH
更新时间:2016-02-14 16:40:37
shell脚本 菜单程序 复制 #!/bin/sh echo "******************************************************************" echo " * MENU *" echo " * 1.copy 2.rename *" echo " * 3.remove 4.find *" echo " * 5.exit *" echo "*******************************************************************" declare -i i=1 while [ $i -eq 1 ] do echo "Please input a number(1-5):" read num case $num in

网友评论

  • 蛮简单的,不过还可以
  • 代码写的其实不咋的