Hi, I'm not really a programmer, but I have this admin problem to solve and I've worked at it for days without success.
What I want to do is read the /etc/passwd file and compare it to another file which contains new users to add to the /etc/passwd file. However I don't want to add a user who is already there. The output of both these files will be a new and updated /etc/passwd file.
The other thing I need to do is to remove certain users by reading a third file that contains the user name only.
I hope this makes sense. Anybody?
Thanks
What I want to do is read the /etc/passwd file and compare it to another file which contains new users to add to the /etc/passwd file. However I don't want to add a user who is already there. The output of both these files will be a new and updated /etc/passwd file.
The other thing I need to do is to remove certain users by reading a third file that contains the user name only.
I hope this makes sense. Anybody?
Thanks