I have a task to do in bash. There is a file: Code: [email protected]:~# cat lista_ip.log 192.168.100.1-12345 192.168.100.1-3342 192.168.100.2-341245 192.168.100.2-345 192.168.100.1-8912 192.168.100.3-156 192.168.100.5-93454 192.168.100.4-2546 192.168.100.4-972335 which contains ip addresses related with some data send somewhere. I need to sum up data being sent for each ip address. My idea is - in theory: 1. Put it into the table. 2. Sort this table based on ip address. 3. Add values of data send together until detect another ip. PS Data in file can be with "-" or without separator.