• 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: Tidying a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tidying a string


  • Subject: Re: Tidying a string
  • From: Martin Orpen <email@hidden>
  • Date: Thu, 28 Apr 2005 19:06:45 +0100

on 28/4/05 18:42, Martin Orpen at email@hidden wrote:

>   set t to "  foo  bar foo    bar  foo      bar  "
>   do shell script "echo " & t & " | tr '  ' ' '"

Doh!

Just realised that tr isn't actually doing anything...

*This* is vanilla shell:

    set t to "      foo  bar foo              bar  foo      bar  "
    set s to do shell script "echo " & t

-->"foo bar foo bar foo bar"


--
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: Tidying a string (From: Martin Orpen <email@hidden>)

  • Prev by Date: Re: Tidying a string
  • Next by Date: Another Keynote-like dictionary
  • Previous by thread: Re: Tidying a string
  • Next by thread: Re: Tidying a string
  • Index(es):
    • Date
    • Thread