Unix Tools

From SkyWiki

(Difference between revisions)
Jump to: navigation, search
(New page: syntax of some Unix command line tools category:remember ===find=== <code> find <path> -name <pattern> -exec CMD {} \; </code> Example: <code> find . -name *.tmp -exec rm {} \; </co...)
m
Line 12: Line 12:
find . -name *.tmp -exec rm {} \;
find . -name *.tmp -exec rm {} \;
</code>
</code>
-
 
===xargs===
===xargs===

Revision as of 11:00, 15 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 \;

Personal tools