- or download this
__DATA__
U1 ID1 100 280
...
U1 ID2 100 100
U3 ID1 100 600
U9 ID3 137 200
- or download this
example output: (Field[0])
U1 3 337 3 630
U2 1 150 1 375
U3 1 100 1 600
U9 1 137 1 200
- or download this
example output: (Field[1])
ID1 3 300 3 1130
ID2 2 250 2 475
ID3 1 137 1 200
- or download this
$res{$fields[0]}{$column}{instance}++;
$res{$fields[0]}{$column}{volume} += $fields[$column];
- or download this
$res{$fields[0]}{instance}++;
$res{$fields[0]}{volume} += $fields[1];
$res{$fields[0]}{instance2}= (<insert code to count field[2]>)
$res{$fields[0]}{volume2} += $fields[2];