Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jraph
on Feb 14, 2019
|
parent
|
context
|
favorite
| on:
Problem solving with Unix commands
$ echo -e '0001\n0010\n0002\n0' | bc 1 10 2 0
hellabites
on Feb 14, 2019
[–]
This is better relative to the `sed` solution as it handles the `0000` case well.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: