On Tue, Nov 27, 2001 at 02:38:42PM +1030, Daniel Falkenberg wrote: > Now with the following I want to be able to only find the user name that > has a GID of 45 and make sure the username exists in /etc/passd in the > first place.
Instead of parsing /etc/passwd directly you should probably be using getpwent and getpwnam. See perldoc -f getpwent, perldoc -f getpwnam, man getpwent and getpwnam (the latter two are the manual pages for the C functions, but their useful). Michael -- Administrator www.shoebox.net Programmer, System Administrator www.gallanttech.com -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]