Comment on Useful Unix commands for data scienceComments−kamaal13y>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.−dpatru13ysum the 0th field: perl -lane '$a += $F[0]; END{ print $a; }'
Comments
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; }'