Re: shell script and text manipulation
Re: shell script and text manipulation
- Subject: Re: shell script and text manipulation
- From: has <email@hidden>
- Date: Wed, 23 Feb 2005 18:05:10 +0000
Christian Vinaa wrote:
the various input from this list regarding shell scripts made me wonder
ok shell scripts arae good for CURL and DATE stuff
but what about text manipulation ?
There's traditional unix tools like awk and sed, but those are only
good for working in ASCII. I'd recommend using Perl, Python or Tcl,
which are all Unicode-savvy and include plenty of text processing
tools as standard. Mind you'll probably need to munge text encodings
a bit at input and/or output if calling via 'do shell script'. For
Perl-based regular expressions, check out the RE library at AppleMods
<http://applemods.sourceforge.net/>, though note that it's unfinished
so can't yet handle large amounts of text. If you're doing a lot of
text processing you might even consider switching completely; it's
much less hassle than bouncing between languages via slow and clumsy
'do shell script' calls.
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
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