运用select和case可以制作简单的交互式菜单。
#! /bin/bash select CHIOCE in show help exit do case "$CHIOCE" in show) ls ;; help) echo "Help : This is a joke for test!" ;; exit) exit 0 ;; esac done
转载于:https://www.cnblogs.com/J2EEPLUS/archive/2011/10/07/2487993.html
相关资源:JAVA上百实例源码以及开源项目