topic:
Writing shell programs automatically delete 30 accounts function. Account named std01 to std30.
answer:
#!/bin/bash i=1 while [ $i -le 30 ] do if [ $i -le 9 ]; then USERNAME=stu0${i} else USERNAME=stu${i} fi userdel -r $USERNAME i=$(($i+1)) done