#!/bin/bash
for name in `more users.list`
do
    if [ -n "$name" ]
then
    useradd -d /home/dev/$name -g dev -m $name
    echo
    echo $name"123" | passwd --stdin "$name"
    echo
    echo "User $username's password changed!"
else
echo
    echo 'The username is null!'
fi
done
 #!/bin/bash
for name in `more users.list`
do
    if [ -n "$name" ]
then
    useradd -d /home/dev/$name -g dev -m $name
    echo
    echo $name"123" | passwd --stdin "$name"
    echo
    echo "User $username's password changed!"
else
echo
    echo 'The username is null!'
fi
done