参考脚本如下
1 #!/bin/bash 2 #批量删除用户 3 4 5 for Deluser in zhangsan liming wangxiao 6 do 7 userdel $Deluser 8 echo "$Deluser用户删除成功" 9 done
参考脚本如下
1 #!/bin/bash 2 #批量删除用户 3 4 5 for Deluser in zhangsan liming wangxiao 6 do 7 userdel $Deluser 8 echo "$Deluser用户删除成功" 9 done