Re: Shell-Perl-Applescript
Re: Shell-Perl-Applescript
- Subject: Re: Shell-Perl-Applescript
- From: Christopher Nebel <email@hidden>
- Date: Sun, 4 Jan 2004 20:12:27 -0800
On Jan 4, 2004, at 6:52 PM, Randal L. Schwartz wrote:
"Christopher" == Christopher Nebel <email@hidden> writes:
Christopher> It occurred to me that one can have one's cake
(multi-line targets)
Christopher> and eat it (short) too:
Christopher> set shellscript to "/usr/bin/perl -0pe 's/" &
targetstring &
Christopher> "/" & replacementstring & "/sg'" & theFile
You want -0777 there, not -0. Otherwise, the first NUL byte will be a
delimiter. I think you wanted slurp mode instead.
Er, right. I got a wire crossed with the "find -print0 | perl -0"
example in the man page.
--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.