Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jraph
· 7y ago · 0 comments
$ echo -e '0001\n0010\n0002\n0' | bc 1 10 2 0
Comments
[–]
hellabites
7y ago
This is better relative to the `sed` solution as it handles the `0000` case well.