bash find touch
find . -type f -exec touch {} +
bash find touch
find . -type f -exec touch {} +
bash find touch
-exec ... \; will run one item after another.
So if you have three files, the exec line will run three times.
-exec ... {} + is for commands that can take more than one file at a time
(eg cat, stat, ls).
The files found by find are chained together like an xargs command.
This means less forking out and for small operations, can mean a substantial speedup.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us