标签:ecs gas color asd pre for done code blog
[root@linux-node1 ~]# cat pwd1.sh read -p ‘请输入您需要的密码位数:‘ digit read -p ‘请输入您需要的密码个数:‘ num for i in `seq $num` do </dev/urandom tr -dc ‘123456789!@#$%qwertQWERTasdfgASDFGzxcvbZXCVB‘ | head -c$digit; echo done [root@linux-node1 ~]# sh pwd1.sh 请输入您需要的密码位数:5 请输入您需要的密码个数:2 aXvRA eCsD!
标签:ecs gas color asd pre for done code blog
原文地址:http://www.cnblogs.com/syaving/p/7301153.html