Since there's already been fish thrown . . . FORE!
perl -lane '/^N2O-(\d+)/;$t{$1}+=$F[-1];$c{$1}++;END{for(sort{$a<=>$b} +keys%t){printf"N2O-$_ %0.3f\n",$t{$_}/$c{$_}}}'
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: HOW to calculate the column data
by Fletch
in thread HOW to calculate the column data
by xbmy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |