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 19:51 UTC (Fri) by SiB (subscriber, #4048)
In reply to: A look at Gawk 4.0.0 by oak
Parent article: A look at Gawk 4.0.0

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 | ./hist.py -s 0.5 -S 0.5" with image


(Log in to post comments)

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.


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