shell script to add users

#! / bin / bash
# Add User

the above mentioned id * $ & IF> / dev / null; the then
echo "this user does not exist"
the else
for i in $ *; do
useradd the Test $ *
echo "123456" | passwd --stdin "$ *" &> / dev / null
echo "$ * user added successfully"
DONE
Exit 0
fi

Guess you like

Origin www.cnblogs.com/ty-wk/p/11344814.html