[HPADM] Matching File Records



I have two different files, one containing just a user login names and
another containing fields 1 and 5 of the passwd file.
I want to create a file that has only those records in the second file that
match the user names in the first file. Is there any quick way to do this
using the diff command or should I do a Perl script. I know nothing of AWK
and VERY little about SED.


Thanks

Dale Whittemore
Unix System Administrator, Sr.
Lockheed Martin EIS

Attachment: smime.p7s
Description: S/MIME cryptographic signature