MACSCRPT Archives

September 2009

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:
Shane Stanley <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 11 Sep 2009 10:46:13 +1000
Content-Type:
text/plain
Parts/Attachments:
text/plain (14 lines)
On 11/9/09 10:31 AM, "Ed Stockly" <[log in to unmask]> wrote:

> So now I will write the results to a new file, then grep a pattern from that
> file that matches the third delimited item.

No need -- just pipe the results to the new grep command. Something like:

"egrep '^(696\\||873\\||981\\|)' " & quoted form of myFile & " | egrep
'<your new search>'"

-- 
Shane Stanley <[log in to unmask]>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

ATOM RSS1 RSS2