写一个脚本,实现批量添加20个用户,用户名为:user1-20,密码为passwd1-20
#!/bin/bash
for i in {1..20}
do
user=“user$i”
useradd $user
echo passwd$i |passwd --stdin $user
done