创建:1.echo {01..03}|xargs -n1|sed -rn 's#(.*)#useradd stu\1;echo 12345|passwd --stdin stu\1#gp'|bash
- echo stu{01..03}|xargs -n1|sed -rn 's#(.*)#useradd &;echo 123456|passwd --stdin &#gp'|bash
删除:echo stu{01..03}|xargs -n1|sed -rn 's#(.*)#userdel -r &#gp'|bash