Re: [OT] My life after AS: shell commands, perl?
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