Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mklm
on Feb 14, 2019
|
parent
|
context
|
favorite
| on:
Problem solving with Unix commands
Although -w is supported by both GNU and BSD versions of `seq', BSD's ignores leading zeros in input. Thus a more portable approach is:
comm -1 -3 <(ls *_A.csv | sed 's/_.*$//') <(seq -f %04.f 500) | sed 's/^0*//'
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: