4 ms·
> Several developers in the last few years have written about using AWK in their "big data" toolkit AWK can be great for simple statistics. I wrote the "num co
by jph 6y ago
> Several developers in the last few years have written about using AWK in their "big data" toolkit
AWK can be great for simple statistics. I wrote the "num command" tool entirely in gawk, to handle typical math for averages, modes, deviations, kurtosis, etc. It's handy for use on systems where a user can't easily install R/Julia/NumPy/etc.
https://github.com/numcommand/num https://github.com/numcommand/num
- Debug_Overload 6y ago> I wrote the "num command" tool entirely in gawk That's pretty cool! It's really packed with features.
- boogies 6y ago> https://github.com/numcommand/num https://github.com/numcommand/num Nice, is it just me/my browser or is http://www.numcommand.com/ http://www.numcommand.com/ down? I was hoping to see if it’s packaged for my distro.
- rottc0dd 6y agoIn our organization, for comparing two files in custom data format and generating a html file in backend of an internal app. It was using an old bash script(!), to generate the file. I was able learn little awk, and was able to write a 100 line awk script to replicate the same. Apart from the efficiency of the script, which was the main aim, it was impressive how readable and understandable the whole thing became. Some subtle bugs became apparent. It is not do-all language. Yet, in its small niche, it is very succinct in expressing the text processing ideas. I know it could be done easily in any other language. A port of bash to awk script : https://github.com/berry-thawson/diff2html/blob/master/diff2html.sh https://github.com/berry-thawson/diff2html/blob/master/diff2... https://github.com/berry-thawson/diff2html https://github.com/berry-thawson/diff2html Original bash counterpart: https://web.archive.org/web/20180612205114/https://github.com/EugenDueck/diff2html https://web.archive.org/web/20180612205114/https://github.co... Edit: Changing link and added new links