摘要:
题目要求 写一个shell脚本,实现简单的弹出式菜单功能,用户能根据显示的菜单项从键盘选择执行对应的命令。 #!/bin/bash PS3="Please input your choice(1-4): " select i in w ls pwd quit do case $i in w) w ; 阅读全文
posted @ 2021-04-21 09:13
星火撩原
阅读(450)
评论(0)
推荐(0)
摘要:
题目要求 编写一个问候程序,它执行时能根据系统当前的时间向用户输出问候信息。假设从半夜到中午为早晨,中午到下午六点为下午,下午六点到半夜为晚上。 #!/bin/bash d=`date +%H` if [ $d -ge 0 -a $d -lt 7 ] then tag=1 elif [ $d -ge 阅读全文
posted @ 2021-04-21 09:06
星火撩原
阅读(150)
评论(0)
推荐(0)

浙公网安备 33010602011771号