Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re:x3 Favorite programming language, other than Perl: (awk!)

by grinder (Bishop)
on May 07, 2002 at 12:12 UTC ( #164594=note: print w/ replies, xml ) Need Help??


in reply to Re: (FoxUni) Re: Favorite programming language, other than Perl:
in thread Favorite programming language, other than Perl:

Yep. I voted for "other" simply because awk wasn't there. I used awk on unix and DOS (yay Thomson Toolkit), and found myself writing awk scripts that wrote their own batch files and then called those batch files to continue the processing. Ah, the good old days. It was indeed outgrowing awk's limits that led me to Perl.

These days I still find myself using awk for one-liners, because it's more compact for saying things like '{print $4}' that the corresponding Perl code.

Awk really was a godsend after having dealt with only grep and sed. I no longer remember any sed, and that's a Good Thing.


print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'


Comment on Re:x3 Favorite programming language, other than Perl: (awk!)
Download Code
Re:x4 Favorite programming language, other than Perl: (awk!)
by jmcnamara (Monsignor) on May 07, 2002 at 12:42 UTC

    These days I still find myself using awk for one-liners

    A few months ago I was going to post a golf competition based on the one-liners at the beginning of The Awk Programming Language. A sort of awk versus Perl.

    However, when I tried it myself I couldn't out-golf any of the awk solutions.

    I am very fond of awk. It stirs emotions in me like memories of an old sweetheart.

    --
    John.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://164594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-07-10 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls