News for hackers. Stuff that matters.
Re:Problem solving with Unix commands by jraph on Thursday February 14, 2019 @09:03AM (#19161898)

    $ echo -e '0001\n0010\n0002\n0' | bc
    1
    10
    2
    0
Re:Problem solving with Unix commands by hellabites on Thursday February 14, 2019 @06:31PM (#19167104)
This is better relative to the `sed` solution as it handles the `0000` case well.