摘要: #!/bin/bash#100以内假发declare -i i=0declare -i sum=0while [ $i -le 100 ];do sum+=$i let i=i+1doneecho $sum 阅读全文
posted @ 2019-08-13 17:07 ‘嗯哼’ 阅读(276) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#添加用户 if id $* &> /dev/null;then echo "这个用户不存在"else for i in $*;do useradd test$* echo "123456" | passwd --stdin "$*" &> /dev/null echo "用户 阅读全文
posted @ 2019-08-13 11:25 ‘嗯哼’ 阅读(343) 评论(0) 推荐(0) 编辑