HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by jraph | Hacker News Reader
Parent
Full thread
jraph
·
$ echo -e '0001\n0010\n0002\n0' | bc 1 10 2 0
View on HN
hellabites
·
This is better relative to the `sed` solution as it handles the `0000` case well.
Reply on news.ycombinator.com