in reply to Average calculation
perl -F: -wane '$t{$F[0]}+=$F[2]; $c{$F[0]}++; END{printf "%s: %f\n", $_, $t{$_}/$c{$_} for keys %c}' file
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Average calculation
by Moron (Curate) on Oct 24, 2005 at 13:19 UTC | |
by 5mi11er (Deacon) on Oct 24, 2005 at 15:58 UTC | |
by Moron (Curate) on Oct 24, 2005 at 16:40 UTC | |
by sfink (Deacon) on Oct 26, 2005 at 06:25 UTC | |
by Perl Mouse (Chaplain) on Oct 26, 2005 at 09:25 UTC |