#!/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
原文链接:https://www.f2er.com/bash/388159.html