MACSCRPT Archives

September 2006

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:
Philip Aker <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 22 Sep 2006 20:37:55 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
On 2006-09-22, at 20:33:00, Philip Aker wrote:

> On 2006-09-22, at 18:54:50, Nobumi Iyanaga wrote:
>
>> Perhaps I may use something like:
>
>> do shell script "perl -e '$_ = shift; print'" & space & quoted  
>> form of the_text & space & "| ..."
>
> Hi Nobumi,
>
> With perl, watch for semicolons to end a statement:
> do shell script "perl -e '$_ = shift; print;

But maybe that's not it. Perhaps you have '\r' in you files? If so  
then maybe you'll have to convert them to '\n'.

Also 'echo -n' will not insert the extra newline on output.

Philip Aker
[log in to unmask]

ATOM RSS1 RSS2