in reply to What one-liners do people actually use?
perl -lne'$x+=$_}{print$x' # sum perl -lne'$x+=$_}{print$x/$.' # avg [download]
blokhead