Timeline for Understanding find(1)'s -exec option (curly braces & plus sign)
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:36 | history | edited | CommunityBot |
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
|
|
| Jun 11, 2016 at 0:57 | comment | added | jlliagre |
Beware that your example using ... -exec mv {} {}.bak ... is not guranteed to work as expected with all find implementations. The POSIX standard states {} must appear alone to be always recognized, otherwise the behavior is free to keep the characters unchanged or to replace them by the pathname. In the former case, your whole command will essentially delete all files but the last one found...
|
|
| Jun 11, 2016 at 0:32 | history | edited | G-Man Says 'Reinstate Monica' | CC BY-SA 3.0 |
Expanded example.
|
| May 9, 2015 at 12:13 | history | answered | G-Man Says 'Reinstate Monica' | CC BY-SA 3.0 |