Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kstrauser
on June 25, 2024
|
parent
|
context
|
favorite
| on:
Why not parse `ls` and what to do instead
That's right. I tested this just now in a directory with 1,000,000 files:
$ for i in *; do echo $i; done | wc -l 1000000
I'm a little bummed that it failed in fish shell, but wouldn't begrudge the author if they replied "don't do that".
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: