I'm trying to create a program that includes variety of duties. One of the duties includes deleting a user if the user name exist in the /etc/passwd file.
how do i make that happen. those of you that know about this shell programming, please tell me what i should do after the shell reads from the user input.
I have found that when people, not me, post "homework" questions that they might be answered if you actually post some code that shows that you have done the work and are just having problems working out the bugs.
If, as in some cases, users log in here and just want answers that is frowned upon.
If you have some code that you can post, that would be received more warmly.
Sorry for the confusion TRUEST. That FYI was not intended for you, but rather for all other readers of this thread. A very common homework assignment of late is creation of a menu-driven script that will do basic unix functions. I wanted to let the other readers (and potential repliers) know that, even though this looks like homework, I researched your posting history and saw that you are very much into real work, and not homework.