Unix Tools
From SkyWiki
(Difference between revisions)
m (→xargs) |
m (→find) |
||
Line 10: | Line 10: | ||
<code> | <code> | ||
- | find . -name *.tmp -exec rm {} \; | + | find . -name \*.tmp -exec rm {} \; |
</code> | </code> | ||
Revision as of 07:05, 16 September 2008
syntax of some Unix command line tools
find
find PATH -name PATTERN -exec CMD {} \;
Example:
find . -name \*.tmp -exec rm {} \;
xargs
find . -name *.core | xargs rm \;