MACSCRPT Archives

September 2009

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]>
Mime-version:
1.0
Date:
Fri, 11 Sep 2009 10:46:13 +1000
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Content-type:
text/plain; charset="US-ASCII"
Subject:
From:
Shane Stanley <[log in to unmask]>
In-Reply-To:
Content-transfer-encoding:
7bit
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