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:02:17 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
On Tue, Apr 15, 2008 at 12:01 PM, jeff donovan <[log in to unmask]> wrote:
> greetings
>
>  my script ing is a little rusty.
>
>  i am trying to read one file and compare the two with a text output of my
> matches. -- make any sence ?

I'm sorry, but I don't quite understand that. Based on your example,
let me see if I have this right:

You have one, presumably long, file consisting of lines that contain
number/word pairs, like:

12345   apple
12346   fruit
12347   beef
12348   mustbelunchtime

Then you have another, hopefully shorter, file consisting of lines
that just contain numbers.  (If it's the same size as the first, then
either there are numbers that don't match, or else the output of this
whole process is just going to be identical to the first file..)

And you want to create a third file containing only those lines from
the first file whose numbers match lines from the second file.

Is that correct?

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

ATOM RSS1 RSS2