• 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: linebreak in a shell script; was Re: What's wrong with this call to zip?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linebreak in a shell script; was Re: What's wrong with this call to zip?


  • Subject: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 01 Mar 2008 00:46:15 -0800
  • Thread-topic: linebreak in a shell script; was Re: What's wrong with this call to zip?

On 2/29/08 6:06 PM, "Mark J. Reed" <email@hidden> wrote:

> Also, having a character id be sometimes a number and sometimes a list
> complicates code written for the general case, though I understand the
> desire to optimize for the by-far-more-common case of one character =
> one number.

For the general case, you can just get 'character id x of y as list' and
deal with it as a one- or two-item list, to be determined by your script.

The only bug in all this is the one that Shane pointed out, that
"text item delimiters" may match one part of a cluster, such as the "\r" in
"\r\n", but NOT the "\n". That's plain wrong.

--
Paul Berkowitz


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: basic textEdit question:
  • Next by Date: Fwd: Is there a shell tool to find folders greater than a given size?
  • Previous by thread: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • Next by thread: Fwd: Is there a shell tool to find folders greater than a given size?
  • Index(es):
    • Date
    • Thread