This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
shell2 [2022/02/02 09:53] dblume [expect tips] |
shell2 [2022/10/17 12:31] (current) dblume [Protips for find] |
||
---|---|---|---|
Line 560: | Line 560: | ||
find lib -type f -name \*.so\* -exec sh -c ' | find lib -type f -name \*.so\* -exec sh -c ' | ||
| | ||
- | Note that you can pass -print (or -and -print) after a -exec argument. Also, the " - " is just a placeholder for $0 (usually the command name, in this case " | + | Note that you can pass -print (or -and -print) after a -exec argument. You can also use -printf, ex., '' |
NEEDED | NEEDED |