Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nazri1
on Feb 14, 2019
|
parent
|
context
|
favorite
| on:
Problem solving with Unix commands
You can use numfmt to parse the number:
$ seq -w 0001 0005|numfmt 1 2 3 4 5
Or just use plain sed:
$ seq -w 0001 0005|sed 's/^0*//' 1 2 3 4 5
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: