Unix Tools

From SkyWiki

(Difference between revisions)
Jump to: navigation, search
m (find)
Current revision (20:46, 18 September 2008) (view source)
m
 
Line 1: Line 1:
syntax of some Unix command line tools
syntax of some Unix command line tools
-
[[category:remember]]
 
===find===
===find===
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