MACSCRPT Archives

April 2008

MACSCRPT@LISTSERV.DARTMOUTH.EDU

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

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

Print Reply
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 15 Apr 2008 13:09:55 -0400
Content-Disposition:
inline
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
MIME-Version:
1.0
Content-Transfer-Encoding:
7bit
In-Reply-To:
Content-Type:
text/plain; charset=UTF-8
From:
"Mark J. Reed" <[log in to unmask]>
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