• 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: [OT] UNIX heads; can I do this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • 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>
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>)

  • Prev by Date: Re: Can AS change the system beep?
  • Next by Date: Re: [OT] UNIX heads; can I do this?
  • Previous by thread: Re: [OT] UNIX heads; can I do this?
  • Next by thread: Re: [OT] UNIX heads; can I do this?
  • Index(es):
    • Date
    • Thread