Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kamaal
on July 16, 2013
|
parent
|
context
|
favorite
| on:
Useful Unix commands for data science
>>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.
dpatru
on July 16, 2013
[–]
sum the 0th field: perl -lane '$a += $F[0]; END{ print $a; }'
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Thankfully you can also write a Perl one liner. Which most of the times is far powerful than awk.