• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shell-Perl-Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Shell-Perl-Applescript (From: John Fowler <email@hidden>)
 >Re: Shell-Perl-Applescript (From: Christopher Nebel <email@hidden>)
 >Re: Shell-Perl-Applescript (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Simple "value Class" problem that`s driving me crazy
  • Next by Date: Re: Play Sound broke
  • Previous by thread: Re: Shell-Perl-Applescript
  • Next by thread: Re: Shell-Perl-AppleScript
  • Index(es):
    • Date
    • Thread