• 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: Native AS or grep via do shell script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Native AS or grep via do shell script?


  • Subject: Re: Native AS or grep via do shell script?
  • From: Joseph Weaks <email@hidden>
  • Date: Sat, 30 Oct 2004 23:17:12 -0500

On Oct 29, 2004, at 5:39 PM, Christopher Nebel wrote:
Trying to use Perl without understanding what you're doing is generally considered a bad idea.

Do we really need to read a whole Perl intro to learn how to use it for text manipulation in do shell script calls? I want to be able to write for myself these kinds of handlers that will take a string or an alias using calls to Perl:


replaceFirstOccurrence(theString, toFind, toReplace)

replaceEveryOccurence(theString, toFind, toReplace)

replaceTextBetweenTwoStrings((theString, theStart, theEnd, toReplace)

returnListOfEveryStringBetweenTheseTwoTags(theString, theStart, theEnd, toReplace)

I'd like to learn Perl's Reg Ex enough to write lines that will find more dynamic matches, as well.
What should I be reading to reach the goal?


Thanks,
Joe

_______________________________________________
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: Native AS or grep via do shell script?
      • From: Jeremy Reichman <email@hidden>
References: 
 >Native AS or grep via do shell script? (From: Jakob Peterhänsel <email@hidden>)
 >Re: Native AS or grep via do shell script? (From: Jakob Peterhänsel <email@hidden>)
 >Re: Native AS or grep via do shell script? (From: Christopher Nebel <email@hidden>)
 >Re: Native AS or grep via do shell script? (From: Jakob Peterhänsel <email@hidden>)
 >Re: Native AS or grep via do shell script? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: [OT] Typo, someone was asking?
  • Next by Date: Re: [OT] Typo, someone was asking?
  • Previous by thread: Re: Native AS or grep via do shell script?
  • Next by thread: Re: Native AS or grep via do shell script?
  • Index(es):
    • Date
    • Thread