【文件属性】:
文件名称:linux实验七 shell编程
文件大小:80KB
文件格式:DOC
更新时间:2014-12-02 06:52:36
linux 实验七 shell 编程
三、实验内容
1、编写一个shell 脚本程序,打印出班级总成绩排名在前3 名(按总成绩递增)学生的姓名、学号和总成绩。打印输出的格式如下(姓名、学号、第1、2、3 门课程成绩及总成绩):
2、编写一个menu 的shell脚本程序,执行后的界面为:
Number Name For Linux Menu
1 exit leave menu or return
2 menu goto another local menu
3 vi deit a file
4 mail read a mail
5 send send mail to someone
6 cal see your calendar
7 who see who is on the system
8 ls list the files in this directory
9 cat display a file on the screen
Please enter a number or a name for the action you wish:
要求有清屏功能,能正确地执行各项命令并显示。
网友评论
- 有用而且还不错~