• 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: Reduce multiple characters to single occurrence (via do shell script?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reduce multiple characters to single occurrence (via do shell script?)


  • Subject: Re: Reduce multiple characters to single occurrence (via do shell script?)
  • From: Bob Studer <email@hidden>
  • Date: Fri, 25 Mar 2005 07:32:16 -0800

There's always tr -s ' '


On Mar 25, 2005, at 12:48 AM, Gnarlodious wrote:

Entity Joseph Weaks spoke thus:

I want to clean up a string by reducing all double, triple, etc. spaces
to a single space.

set someString to "1 2 5 890" do shell script "echo " & someString & " | sed 's|\\s *| |g' "


-- Gnarlie


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


This email sent to email@hidden


	-Bob

PGP: 0x5A969850
---------------------
It was the old-fashioned investors who made it a point to watch what the president of a company was doing. The modern investors don't find knowledge necessary.
--Ayn Rand, Atlas Shrugged


_______________________________________________
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: Reduce multiple characters to single occurrence (via do shell script?) (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Reduce multiple characters to single occurrence (via do shell script?)
  • Next by Date: Word wordcounts
  • Previous by thread: Re: Reduce multiple characters to single occurrence (via do shell script?)
  • Next by thread: Re: Reduce multiple characters to single occurrence (via do shell script?)
  • Index(es):
    • Date
    • Thread