Re: Reduce multiple characters to single occurrence (via do shell script?)
Re: Reduce multiple characters to single occurrence (via do shell script?)
- Subject: Re: Reduce multiple characters to single occurrence (via do shell script?)
- From: Gnarlodious <email@hidden>
- Date: Fri, 25 Mar 2005 01:48:21 -0700
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:
This email sent to email@hidden