#!/bin/bash
a='stu'
i=1
while [ $i -le 10 ]
do
useradd ${a}$i
echo "123" | passwd --stdin ${a}$i &> /dev/null
let i++
done
#!/bin/bash
a='stu'
i=1
while [ $i -le 10 ]
do
useradd ${a}$i
echo "123" | passwd --stdin ${a}$i &> /dev/null
let i++
done