01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FIND ( 1 ) FIND ( 1 )<br />

-print<br />

-cpio device<br />

-newer file<br />

-inumn<br />

-depth<br />

( expression )<br />

Always true; causes the current path name to be<br />

printed.<br />

Write the current file on device in cpio ( 4) format<br />

(5120 byte records).<br />

True if the current file has been modified more<br />

recently than the argument file .<br />

True if the current file is inode number n.<br />

Always true. Must begin the expression. Forces<br />

a depth first search: find does not apply the<br />

expression to a directory until it has applied the<br />

expression to all the files in the directory. This<br />

is useful with cpio ; see the example in cpio(1).<br />

If the example were done without -depth, the<br />

modification dates on the copied directories<br />

would not match their originals.<br />

True if the parenthesized expression is true<br />

(parentheses are special to the shell and must be<br />

escaped).<br />

J<br />

The primaries may be combined using the following operators (in<br />

order of decreasing precedence):<br />

1) The negation of a primary (! is the unary not operator).<br />

2) Concatenation of primaries (the and operation is implied by<br />

the juxtaposition of two primaries).<br />

3) Alternation of primaries ( -o is the or operator).<br />

EXAMPLE<br />

To remove all files named a.out or •.o that have not been<br />

accessed for a week:<br />

find / \( -name a.out -o -name '* .o' \) -atime +7 -exec rm {}<br />

\;<br />

FILES<br />

jetcjpasswd, jete/group<br />

SEE ALSO<br />

cpio(l), sh(l), test(l), stat(2), cpio(4), fs(4).<br />

- 2-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!