News for hackers. Stuff that matters.
Re:Unix Text Processing (1987) by ralph on Tuesday December 11, 2012 @01:33PM (#4905919)
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.

There are no comments on this comment yet.