Jun 16 88.191.117.191 = 100
Jun 16 88.191.117.191 = 70
Jun 16 88.191.117.191 = 30
Jun 16 200.242.67.142 = 65
Jun 16 125.77.107.212 = 40
Jun 16 125.77.107.212 = 60
And I want to have the ff ouput:
Jun 16 88.191.117.191 = 200
Jun 16 125.77.107.212 = 100
Jun 16 200.242.67.142 = 65
It adds the 5th column ( value ) for the same IP address and then sort it.
I've thinking on this since yesterday but cant find the solution.
Can you help me on this ?
$ awk '{_[$1" "$2" "$3]+=$5;}END{for (i in _) print i, " = ",_;}' file
Jun 16 125.77.107.212 = 100
Jun 16 200.242.67.142 = 65
Jun 16 88.191.117.191 = 200