• 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] My life after AS: shell commands, perl?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] My life after AS: shell commands, perl?


  • Subject: Re: [OT] My life after AS: shell commands, perl?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 2 Dec 2005 16:15:19 -0500

On 12/2/05, Christopher Nebel <email@hidden> wrote:
I still prefer to use awk or cut(1) for columnar text, but
that may just be because I've never bothered to fully learn Perl's
auto-split option.)

...or it could just be because awk and cut are genuinely nicer than perl here.   I generally use awk for simple column selection simply because e.g. "awk '{print $1}' " is way less typing than "perl -lane 'print $F[0]' ".  However, as what you're trying to go gets more complex, Perl is often a net win, as in the curl example yesterday. 

The same goes for sed, really.  I still use sed for selecting a range of lines, as in "sed -ne 125,226p" to get the 125th through 226th lines, simply because it's a few fewer keystrokes than "perl -ne 'print if 125..226' ".  But again, as the complexity goes up, I switch to perl almost instantly. 

--
Mark J. Reed <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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [OT] My life after AS: shell commands, perl?
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: [OT] My life after AS: shell commands, perl? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Fwd: Validating email address
  • Next by Date: Re: [OT] My life after AS: shell commands, perl?
  • Previous by thread: Re: [OT] My life after AS: shell commands, perl?
  • Next by thread: Re: [OT] My life after AS: shell commands, perl?
  • Index(es):
    • Date
    • Thread