I have one file, for example
a 1:2:3:4:5
b 2:3:4:5:6
Output must be:
a 15
b 20
I have to add numbers from the second column on output:
echo $((${line// /+}));done < $1
sums, but I do not know how to change the separator : to (I don't know how to use tr).