http://qs1969.pair.com?node_id=515377


in reply to What one-liners do people actually use?

I sometimes use these oneliners to add or average a list of numbers from STDIN.
perl -lne'$x+=$_}{print$x' # sum perl -lne'$x+=$_}{print$x/$.' # avg
There may be standard unix tools to do the same thing, but this is just as easy for me.

blokhead