Currently I have the following script and I am merely looking for validation before I execute it in my environment -
#!/usr/bin/ksh
while echo "Enter user to delete or CTRL-d to quit: \c"
read username
do
echo $username >> userlist.txt
done
echo
userdel -r < userlist.txt
What I wish to be sure of is that that userlist.txt file will be parsed by userdel and every entry in the file would cause a valid user account to be deleted.
Thank you for your assistance.
#!/usr/bin/ksh
while echo "Enter user to delete or CTRL-d to quit: \c"
read username
do
echo $username >> userlist.txt
done
echo
userdel -r < userlist.txt
What I wish to be sure of is that that userlist.txt file will be parsed by userdel and every entry in the file would cause a valid user account to be deleted.
Thank you for your assistance.