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:
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 17 Sep 2009 17:14:29 -0700
Content-Type:
text/plain
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