• 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: text item delimiter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text item delimiter


  • Subject: Re: text item delimiter
  • From: Martin Orpen <email@hidden>
  • Date: Fri, 29 Apr 2005 16:31:40 +0100

on 29/4/05 15:54, Rob Stott at email@hidden wrote:

> ...theres almost certainly a better way that doesn't involve that many 'sed's
> for multiple digits but I'm not sure how. Can anyone put me straight on that
> one?

You can use tr for single digits:

    set alphString to "hafbjgcedi"
    do shell script "echo " & alphString & " | tr  [a-j] [0-9]"

    -->""7051962438""

Multiple digits are also *problematic* with tr - but pretty useless when
returned as a string too :-)

--
Martin Orpen


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: text item delimiter (From: Rob Stott <email@hidden>)

  • Prev by Date: Re: Image upload via FTP
  • Next by Date: Re: Exiting from an Applescript
  • Previous by thread: Re: text item delimiter
  • Next by thread: Re: text item delimiter
  • Index(es):
    • Date
    • Thread