There may be standard unix tools to do the same thing, but this is just as easy for me.perl -lne'$x+=$_}{print$x' # sum perl -lne'$x+=$_}{print$x/$.' # avg
blokhead
In reply to Re: What one-liners do people actually use?
by blokhead
in thread What one-liners do people actually use?
by TomDLux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |