运维网's Archiver
论坛
›
Shell/Powershell
› shell批量增加账户
色胃康胶囊
发表于 2018-8-29 14:09:46
shell批量增加账户
for line in $(more list.txt)
do
u=$(echo $line | cut -d : -f 1)
useradd -m $u
echo "$line" | chpasswd
done
页:
[1]
查看完整版本:
shell批量增加账户