Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] UNIX heads; can I do this?



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: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Email Change because of SPAM... (Sorry for the RESEND) (From: Don Wieland <email@hidden>)
 >[OT] UNIX heads; can I do this? (From: Bill Briggs <email@hidden>)
 >Re: [OT] UNIX heads; can I do this? (From: Emmanuel <email@hidden>)
 >Re: [OT] UNIX heads; can I do this? (From: Bill Briggs <email@hidden>)
 >Re: [OT] UNIX heads; can I do this? (From: Philip Aker <email@hidden>)
 >Re: [OT] UNIX heads; can I do this? (From: Bill Briggs <email@hidden>)
 >Re: [OT] UNIX heads; can I do this? (From: Emmanuel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.