Timeline for find with -exec eval of $0
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 12, 2015 at 21:25 | comment | added | G-Man Says 'Reinstate Monica' | As discussed here and here, some people like to insert a placeholder word between sh -c "(command)" and the argument list, if any, to straighten out this confusion. For example, your command would become find . -type f … -exec bash -c '/bin/echo $1 is the name of the file' placeholder {} \;. In the shell command, $0 would equal placeholder. (It is common to use things like sh or _ as the placeholder.) | |
| May 12, 2015 at 14:47 | vote | accept | Gregg Leventhal | ||
| May 12, 2015 at 14:41 | history | answered | Dubu | CC BY-SA 3.0 |