Re: RegExps in AS
Re: RegExps in AS
- Subject: Re: RegExps in AS
- From: John Stewart <email@hidden>
- Date: Mon, 21 Feb 2005 18:16:37 -0500
On 02/21/05 at +0100 Ihar 'Philips' Filipau said this
>P.S. And btw "do shell script" cannot pipeline, so it is rather
>useless. Running new instance of say perl for 1k of files is just
>insane. sed/awk will run faster - but still overall is slow. Silly,
>especially when all this *nix stuff is designed to be pipelined.
>Command line? - one might easily hit limit on command line length,
>which in BSDs (compared to GNU) is set quite low.
Since when doesn't piplining work in do shell scripts? Does on my machine, try this one liner.
do shell script "cat /usr/share/man/whatis.db | grep '([1])' > ~/desktop/UnixCmdRef.txt"
Note that the output of "cat" is piped to "grep" whose output is then redirected to a file on your desktop.
JBS
--
Some people try to turn back their odometers. Not me, I want people to know "why" I look this way. I've traveled a long way and some of the roads weren't paved. — Will Rogers
_______________________________________________
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