实验题目:
1. 设计如下一个菜单驱动程序,保存为: menu.sh
Use one of the following options:
P:To display current directory
S:To display the name of running file $0
D:To display today's date and present time(如:2017-04-26 05:45:12)
L:To see the list of files in your present working directory
W:To see who is logged in
I:To see the ip address of this local machine
Q:To quit this program
Enter your option and hit:
要求对用户的输入忽略大小写,对于无效选项的输入给出相应提示。要求使用case
2. 编写一段bash shell程序,保存为:score.sh