I have awk command to sum time from another filed it works with the numbers, but when tried with hours it doesn't work
example
> cat ee.txt
amazon|4
ebay|5
alibab|10
ebay|4
amazon|5
> awk -F '|' '$1 ~ /ebay/{ sum += $2 } END{ print sum }' ee.txt
8
but when I need to sum the time the command doesnt work
> cat ee.txt
amazon 1:02:00
ebay 2:00:00
alibab 240:00:00
ebay 3:00:00
amazon 72:00:00
> awk -F '|' '$1 ~ /ebay/{ sum += $2 } END{ print sum }' ee.txt
the output should be 5:00:00