I have a flat file with data in the following format
(1+01:01)
(06:18)
(00:02)
I can use awk to sum up the data if it's in the form of seconds like so
16
32
64
cat file | awk '{SUM+=$1} END {print SUM}'
Is there a way I can convert the values stored in the flat file to seconds?