Script Question

Here is my problem.

I have a txt file with a list of user names in both upper case and lower case. I need to remove the names from the passwd file. I want to be able to run a script that looks at my txt list and then removes those names from the passwd file. It would be nice if it backed up the passwd file also. I've found scripts that remove or change files and some that remove or change one file name but couldn't find any that did what I need.

Thanks for your help.

Wade

If you have found scripts to do 'sort of' what you are looking for, you should post it here with a sample of the text file and any other pertinent info. And be sure to include where you have tried to modify the scripting but have been unsuccessful at getting desired results. Speaking for myself, I enjoy assisting by providing a command or small section of code to resolve an interesting problem.
Sounds like you are asking someone to write you a complete program.

I don't mean to make it sound like I want someone to do all the work. Sorry. I should have also asked about searching with the correct terminology for the script. Before when I searched I was searching for "remove multiple entries from file" hoping I could find something close to use. I understand how to make a script find an entry and delete it or change it one time but I lose it at pulling multiple data from one file and then using that to find and delete the data in another. If you know of a script that does anything like that you can point me to I will play around with it myself. Also what terms could I search with? There has to be something out there close that I just am not finding. Since I'm still new to Unix I don't always know what term to use to explain something or inquire about.

Thanks,

Wade

You may not want to edit /etc/passwd or /etc/shadow right away, if at all.

Why? because there are other files like /etc/group that need changing and a bunch of files in the system whose ownerships will get messed up.

Search 'disable user account' - note that you need to be aware this is often platform specific.
On Linux usermod will do what you want, for example.