資源簡介
三、實驗內容
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:
要求有清屏功能,能正確地執行各項命令并顯示。
代碼片段和文件信息
- 上一篇:linux實驗四_文件目錄操作命令
- 下一篇:馬爾科夫蒙特卡羅MCMC方法
評論
共有 條評論