Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mml
on Aug 16, 2011
|
parent
|
context
|
favorite
| on:
You can list a directory containing 8 million file...
What about 'echo *' ? That's usually my last resort when dealing with malfunctioning ls.
joblessjunkie
on Aug 16, 2011
[–]
The shell will attempt to expand '*' into arguments before it spawns the 'echo' process.
The shell cannot handle long argument lists, so this will fail rather quickly.
smackfu
on Aug 16, 2011
|
parent
[–]
Yep, this is usually the first point of failure for commands acting on somewhat large directories, that drives people to use find and exec.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: