创建: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
原文地址:https://blog.51cto.com/6727215/2429318
时间: 2024-10-02 06:25:32