[HPADM] Matching File Records

From: Whittemore, Dale (dale.whittemore@lmco.com)
Date: Wed Jun 13 2007 - 12:23:21 EDT


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


--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:56 EDT