Timeline for Find all files in directories named foo
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 18, 2019 at 6:31 | comment | added | Gilles 'SO- stop being evil' |
@StéphaneChazelas Sure but for this particular example, if you're going to use a shell, you don't need a nested find invocation at all. I was discussing a find-without-sh solution.
|
|
| Sep 18, 2019 at 6:14 | comment | added | Stéphane Chazelas |
And the -prune problem can then be addessed with find "$file/." ! -name . -prune...
|
|
| Sep 18, 2019 at 6:13 | comment | added | Stéphane Chazelas |
One way to nest -execs is to use a shell as in -exec sh -c 'for file do find "$file" -exec cmd \{\} +; done' sh {} +
|
|
| Sep 17, 2019 at 21:47 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 4.0 |
fix non-portable regex syntax (thanks Stéphane Chazelas); exclude symbolic links to regular files in sh
|
| Sep 17, 2019 at 20:27 | history | answered | Gilles 'SO- stop being evil' | CC BY-SA 4.0 |