Re: [OT] UNIX heads; can I do this?
Re: [OT] UNIX heads; can I do this?
- Subject: Re: [OT] UNIX heads; can I do this?
- From: Philip Aker <email@hidden>
- Date: Thu, 14 Jun 2007 11:45:46 -0700
On 2007-06-14, at 01:56:04, Emmanuel wrote:
At 9:49 PM -0300 6/13/07, Bill Briggs wrote:
Well, I've got a tab delimited file and want to get one of the
columns from it. I'm betting that even with the Satimage osax
you can't get more terse than this:
awk '{ FS = " " } ; {print $3}' b.txt > c.txt
Betting how much?
cut -f 3 < b.txt > c.txt
:-)
Okay. That's terser.
Terseness vs legibility ...
extractcolumn 3 from f -- uses Satimage osax
That's a canard Emmanuel,
Firstly you've casually omitted several paragraphs of AppleScript
required to do the reads and writes.
Secondly, the I/O redirection commands are standard per shell.
So it seems to me, that if one knows what they want to accomplish,
but doesn't know which command to do it, then the effort for
AppleScript vs Unix might be the same. And in many cases (not this
particular one though), doing a "man -k xxx" is much more expedient
than wading throught AppleScript dictionaries.
Philip Aker
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden