Unix Tools

From SkyWiki

(Difference between revisions)
Jump to: navigation, search
m
(kursiv)
Line 4: Line 4:
===find===
===find===
<code>
<code>
-
find <path> -name <pattern> -exec CMD {} \;
+
find ''PATH'' -name ''PATTERN'' -exec CMD {} \;
</code>
</code>

Revision as of 07:04, 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 \;

Personal tools