#!/bin/bashname="user"for number in $(seq 1 20)dopassword=$(cat /dev/urandom | head -1 | md5sum| head -c 5)useradd $name$numberecho "$password" | passwd --stdin $name$number >& /dev/nullecho "$name$number $password" >> userinfo.txtdone
#!/bin/bashname="user"for number in $(seq 1 20)dopassword=$(cat /dev/urandom | head -1 | md5sum| head -c 5)useradd $name$numberecho "$password" | passwd --stdin $name$number >& /dev/nullecho "$name$number $password" >> userinfo.txtdone