MACSCRPT Archives

April 2008

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Mark J. Reed" <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 15 Apr 2008 13:09:55 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (8 lines)
If I was right about the goal, here's one way to do it from the command line:

$ cat /file/with/just/numbers /file/with/pairs | awk '(NF==1)
{seen[$1]=1} (NF==2 && seen[$1]) {print}'

-- 
Mark J. Reed <[log in to unmask]>

ATOM RSS1 RSS2