Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ekns
on Oct 8, 2017
|
parent
|
context
|
favorite
| on:
Show HN: A simple, fast and user-friendly alternat...
It's not even slower (and it's safe beyond the argv limit) if you use "+" instead of the semicolon.
find -type f -exec sed -i s/foo/bar/ {} +
This only invokes the command twice for 100k files (assuming we can pass in 64k arguments to sed)
derriz
on Oct 8, 2017
[–]
Thanks! I never knew about the + terminator.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: