摘要: [root@rhel8 shell]# vi modify_passwd.sh [root@rhel8 shell]# cat modify_passwd.sh #!/bin/bash ######################################################### 阅读全文
posted @ 2020-06-22 19:16 HeiDi_BoKe 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 一、只从文件读取 [root@rhel8 shell]# cat ping.sh #!/bin/bash # 判断是否有输入参数 if [ $# -eq 0 ];then # basename:只输出路劲的最后一个名称 echo -e "\033[34mUsage: `basename $0` fi 阅读全文
posted @ 2020-06-22 14:09 HeiDi_BoKe 阅读(1585) 评论(0) 推荐(0) 编辑