摘要: 编写一段bash shell程序, 根据键盘输入的学生成绩,显示相应的成绩登等级, 其中 60分以下为"Failed!", 60~69分为"Passed!", 70~79分为"Medium!", 80~89分为"Good!", 90~100为"Excellent!"。 如果输入超过100的分数,则显 阅读全文
posted @ 2018-05-07 23:10 TinyRick 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 设计如下一个菜单驱动程序 Use one of the following options: P:To display current directory S:To display the name of running file D:To display today's date and pres 阅读全文
posted @ 2018-05-07 23:06 TinyRick 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 编写一个shell过程完成如下功能(必须在脚本中使用函数)1.程序接收3个参数:$1/$2和$3,合并两个文件$1/$2为$3,并显示,三个文件均为文本文件。2.如果文件$3不存在,那么先报告缺少$3,然后将合并后的内容输出到mydoc.txt。如果有$3,就合并到$3。3.如果文件$2或文件$3不 阅读全文
posted @ 2018-05-07 23:01 TinyRick 阅读(687) 评论(0) 推荐(0) 编辑