• 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: shell script and text manipulation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: shell script and text manipulation
      • From: "Reese, Stevan" <email@hidden>
  • Prev by Date: Re: Aaaarrrggghhh XML!
  • Next by Date: Re: shell script and text manipulation
  • Previous by thread: RE: shell script and text manipulation
  • Next by thread: Re: shell script and text manipulation
  • Index(es):
    • Date
    • Thread