标签:std user else 添加 ima for img exist com
1 #/bin/bash
2 for i in {1..10};do
3 if id user$i &> /dev/null;then
4 echo "This user is exists"
5 else
6 adduser user$i &>/dev/null
7 echo "user$i" | passwd --stdin user$i &>/dev/null
8 echo "This user add finash"
9 fi
10 done
标签:std user else 添加 ima for img exist com
原文地址:https://blog.51cto.com/11342825/2424929