[root@localhost ~]# cd /data/
[root@localhost ~]# mkdir usesr
[root@localhost ~]# cd user
[root@localhost ~]# ls
[root@localhost ~]#for s in 'seq -w 0 10'
>do
>echo user$s>>user.lst
>done
#查看文件列表
[root@localhost ~]# cat user.list
user00
user01
user02
user03
user04
user05
user06
user07
user08
user09
user10
[root@localhost ~]# cat useradd.sh
#修改useradd.sh的权限
[root@localhost ~]# chmod u+x useradd.sh
[root@localhost ~]# ./sueradd.sh
user00 pass321
user01 pass 234
user02 pass 255565
user03 pass 432048
user04 pass 24343545
user05 pass 54355654
user06 pass 435465
user07 pass 656
user08 pass 24343
user09 pass3432
user10 pass89
#查看用户添加情况
[root@localhost user]# cat /etc/passwd | grep user