• 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: Parsing text from a string // shell script ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing text from a string // shell script ?


  • Subject: Re: Parsing text from a string // shell script ?
  • From: Christian Vinaa <email@hidden>
  • Date: Thu, 17 Mar 2005 10:21:00 +0100

At 16:11 -0500 16/03/2005, John Stewart wrote:
On 03/16/05 at -0800 Todd Geist said this

I am just full of questions today   :>)

If I have the string "Have a [Nice] [Day]"

I want what is in the first set of brackets "Nice".  The brackets will
always be somewhere in the string and I want what is in side of them.

Thanks so much for all your help?


Here's a method that doesn't use text item delimiters:

--> cut <--
set txtStr to "Have a [Nice] [Day]"
set rplyStr to text ((offset of "[" in txtStr) + 1) thru ((offset of "]" in txtStr) - 1) of txtStr
--> cut <--


There's only 2 lines, the second one is wrapped.



i was wondering; is there a shell script option ?

I know  i know     once I learned about shell scripts  I am hooked !  ;-)

--
Christian Vinaa

...... Meanwhile, aunt Martha, having taken a tramp in the woods,
is lying in a ditch at the edge of town .........................
_______________________________________________
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


  • Follow-Ups:
    • Re: Parsing text from a string // shell script ?
      • From: "Steven D.Majewski" <email@hidden>
References: 
 >Re: Parsing text from a string (From: John Stewart <email@hidden>)

  • Prev by Date: iCal organization with dates & events & lists....
  • Next by Date: Escape character problem
  • Previous by thread: Re: Parsing text from a string
  • Next by thread: Re: Parsing text from a string // shell script ?
  • Index(es):
    • Date
    • Thread