Unix Tools

From SkyWiki

(Difference between revisions)
Jump to: navigation, search
m (xargs)
Current revision (20:46, 18 September 2008) (view source)
m
 
(One intermediate revision not shown.)
Line 1: Line 1:
syntax of some Unix command line tools
syntax of some Unix command line tools
-
[[category:remember]]
 
===find===
===find===
Line 10: Line 9:
<code>
<code>
-
find . -name *.tmp -exec rm {} \;
+
find . -name \*.tmp -exec rm {} \;
</code>
</code>
Line 18: Line 17:
find . -name *.core | xargs rm \;
find . -name *.core | xargs rm \;
</code>
</code>
 +
 +
[[category:remember]]
 +
[[category:Linux]]

Current revision

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