Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>>Writing a script in python/ruby/perl/whatever would probably take a few minutes and then even more time for the script to actually complete.

Thankfully you can also write a Perl one liner. Which most of the times is far powerful than awk.



sum the 0th field: perl -lane '$a += $F[0]; END{ print $a; }'




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: