Re: Native AS or grep via do shell script?
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