News for hackers. Stuff that matters.
Re:Unix Text Processing (1987) by ralph on Tuesday December 11, 2012 @01:52PM (#4906062)
The sed and dc combo are perhaps not as readable, but there was a time before the dawn of the One True Awk. :-)

    sed '1s/.*/0/; s/;[^;]*$//; s///; s/.*;//
        s/00$//; s/:..$/+1++/; s/:$/++/; s/:/ 60*/; $s/$/p/' |
    dc

There are no comments on this comment yet.