User: Password:
Subscribe / Log in / New account

A look at Gawk 4.0.0

A look at Gawk 4.0.0

Posted Jul 8, 2011 15:24 UTC (Fri) by HelloWorld (guest, #56129)
In reply to: A look at Gawk 4.0.0 by Cyberax
Parent article: A look at Gawk 4.0.0

s/that requires debugger//

(Log in to post comments)

A look at Gawk 4.0.0

Posted Jul 8, 2011 17:06 UTC (Fri) by oak (guest, #2786) [Link]

Awk & awk scripts are still useful.

For example Perl & Python are huge, their size is in MBs whereas configuring awk[1] to Busybox increases Busybox size only by some KBs. Sometimes size matters. Sometimes Perl or Python aren't otherwise available.

[1] Busybox AWK isn't 100% POSIX compliant, but the few POSIX features it's lacking are marginal (I've only bumped into one, some rarely used printf format feature which I don't anymore remember).

A look at Gawk 4.0.0

Posted Jul 8, 2011 19:51 UTC (Fri) by SiB (subscriber, #4048) [Link]

I use gawk almost daily when analysing data files with gnuplot. Like this :-)

plot "<awk -v I=7 -f RSH2.awk --s '/^E/ && $F1<1000*mV && $F2<1000*mV && $BH<20*mV && $DH>15*mV{print $F1/mV, $F2/mV}' radpf-2011-06-27-muons-horizontal-3.E | ./ -s 0.5 -S 0.5" with image

Oh Noes!

Posted Jul 8, 2011 21:13 UTC (Fri) by felixfix (subscriber, #242) [Link]

You are providing fodder for those who want Jon to start deleting comments.

Oh Noes!

Posted Jul 8, 2011 21:28 UTC (Fri) by nix (subscriber, #2304) [Link]

It's no uglier than MUMPS code.

(In any case, I'd look out: from the look of that comment, SiB could be firing ionized plasma from an underground death ray any time now.[1])

[1] sure, they *say* it's a particle accelerator...

Oh Noes!

Posted Jul 11, 2011 1:51 UTC (Mon) by zlynx (subscriber, #2285) [Link]

Particle Accelerator or Death Ray.

It all depends on which direction you point the thing.

A look at Gawk 4.0.0

Posted Jul 11, 2011 15:35 UTC (Mon) by rsidd (subscriber, #2582) [Link]

Ah, that's where perl gets its line noise from.

A look at Gawk 4.0.0

Posted Jul 11, 2011 15:47 UTC (Mon) by paulj (subscriber, #341) [Link]

AWK is no where near as bad as Perl, imo. There are no variable context operators that mean you have stick funny chars in front of every variable reference (vars are referenced just by name - $ is just a field dereference operator that acts on vars). The uglyness here is primarily just from its inherent nature as being a very long conditional to control a print statement, and squashing it all on one line.

A look at Gawk 4.0.0

Posted Jul 11, 2011 13:59 UTC (Mon) by stevem (subscriber, #1512) [Link]

Yet more language trolling. Nothing to see here, move on...

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds