3 ms·
Another way would be all awk. awk -F\; ' $7 != "Duration" { split($7, t, ":") s += t[1] * 60 + t[2] + (t[3] != 0) }
by ralph 14y ago
Another way would be all awk.
awk -F\; '
$7 != "Duration" {
split($7, t, ":")
s += t[1] * 60 + t[2] + (t[3] != 0)
}
END {print s + 0}
'
Note the handling of s == "" in END.