Skip to content

Comment on Useful Unix commands for data science

Comments

>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; }'

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.