hi perl-geeks,
sorry, to came up wich such a lame question, but i'm really stucked and can't find a solution (searched for a similar snippet on permonks - no success).
i've a file with two lines (tab delimetered, 1st string IP-subnet, 2nd an integer).
Example:
192.168.1 23
192.168.1 14
192.168.4 8
192.168.3 13
192.168.3 12
so i would like to sum all integer for a specific subnet.
Output should be:
192.168.1 37
192.168.4 8
192.168.3 25