|
|
|
|
|
by retrogeek
724 days ago
|
|
I will sometimes use the "| while read" syntax with find. One reason for doing so is that the "-exec" option to find uses {} to represent the found path, and it can only be used ONCE. Sometimes I need to use the found path more than once in what I'm executing, and capturing it via a read into a reusable variable is the easiest option for that.
I'd say I use "-exec" and "| while read" about equally, actually. And I admittedly almost NEVER use xargs. |
|