perl -lane '/^N2O-(\d+)/;$t{$1}+=$F[-1];$c{$1}++;END{for(sort{$a<=>$b}keys%t){printf"N2O-$_ %0.3f\n",$t{$_}/$c{$_}}}'