[geeks] Passwd file merge

Steven Hill sjh at waroffice.net
Mon Mar 24 05:10:24 CST 2003


Umm, before I reinvent the wheel, do any of you guys have a script that
will merge a file containing a bunch of lines from a *nix passwd file in
to a real live passwd file?

In theory, I have a file spat out by something that just contains the
changes to passwd on system1 from yesterday. It needs to either replace a
line in the passwd file, if it is an existing user, or add a new line
(preferably checking for UID collision) if it is a new user.

Cheers.

-- 
Steven Hill

``Libenter homines id quod volunt credunt''


More information about the geeks mailing list