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
Mime-Version:
1.0 (Apple Message framework v1076)
Content-Type:
text/plain; charset=us-ascii; format=flowed; delsp=yes
Date:
Thu, 17 Sep 2009 17:14:29 -0700
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
From:
In-Reply-To:
Content-Transfer-Encoding:
7bit
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Parts/Attachments:
text/plain (53 lines)
Well, it's just open in BBEdit for testing and troubleshooting. When  
this is live I'm hoping BBEdit doesn't get involved, so I'm trying  
TextCommands and if that fails I'll try TR.

Although I'm still kind of clumsy on handling multiple shell commands  
on the same data. I'm thinking there's a way to run tr on a file, have  
the result in memory, then egrep that to get the desired results, but  
I'm not there yet.

ES

On Sep 17, 2009, at 5:07pm, Mark J. Reed wrote:

> On Thu, Sep 17, 2009 at 7:59 PM, [log in to unmask]  
> <[log in to unmask]> wrote:
>> Now I just need to figure out how to unixify a macroman file.
>
> You said you had it open in BBEdit, right?  File->Save As, select Line
> Endings: UNIX (LF).
>
>>
>> On Sep 17, 2009, at 4:38pm, Mark J. Reed wrote:
>>
>>> On Thu, Sep 17, 2009 at 6:59 PM, [log in to unmask] <[log in to unmask] 
>>> >
>>> wrote:
>>>>
>>>> Well,
>>>>
>>>> grep TRAV '/Users/edstockly/Desktop/09-18-09-Fri-Daily TV
>>>> Gridx/ProofLogs-09-18-09/0918_FRI.TXT'
>>>>
>>>> egrep TRAV '/Users/edstockly/Desktop/09-18-09-Fri-Daily TV
>>>> Gridx/ProofLogs-09-18-09/0918_FRI.TXT'
>>>>
>>>> Both of those commands, when run from the terminal, return every  
>>>> line of
>>>> the
>>>> file.  There should be only 40 or so lines that match.
>>>
>>> Are you sure they are separate lines in the UNIX sense?  Newlines,  
>>> not
>>> just carriage returns?
>>>
>>> --
>>> Mark J. Reed <[log in to unmask]>
>>
>
>
>
> -- 
> Mark J. Reed <[log in to unmask]>

ATOM RSS1 RSS2