摘要:
#!/bin/bash echo `ls /usr/share/dict` s=`cat /usr/share/dict/linux.words` for i in $s; do if [ $1 = $i ];then echo "$1 在字典中" exit fi done echo "$1 不在字典中" 阅读全文
摘要:
#!/bin/bash echo "创建成功的用户" > /root/user_name read -ep "请输入要创建的用户:" num for i in `seq 1 $num` do pw=`cat /dev/urandom | head -1|md5sum |head -c 5` id wg$i > /dev/null 2>&1 if [ $? -eq 0 ];then while tr 阅读全文