16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

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<br />

–newer file<br />

Compares the modification date of the found file with that of the file given.<br />

This matches if someone has modified the found file more recently than file.<br />

–nogroup<br />

Matches if no defined group owns the file.<br />

–none Indicates that some action has been taken; thus find does not invoke the<br />

default –print action. If present, this primary always matches.<br />

–nouser<br />

Matches if no defined user owns the file.<br />

–okcommand;<br />

Is similar to –exec, but before find executes the command, it displays the<br />

command to confirm that you want to go ahead. find executes the<br />

command line only if your input matches the expression for “yes” (yes and<br />

no expressions are defined in LC_MESSAGES). If you type the expression<br />

for “no”, the primary does not match. You must delimit the terminal<br />

semicolon with white space.<br />

Rule: The semicolon is a shell metacharacter. To use it in expression, you<br />

must quote it.<br />

–perm[-] mask<br />

By default, matches if the permissions on file are identical to the ones given<br />

in mask. You can specify mask in octal or in symbolic mode (see chmod).<br />

If you use symbolic mode, find assumes that you begin with no bits set in<br />

mask, and that the symbolic mode is a recipe for turning the bits you want<br />

on and off. A leading minus sign (−) is special. It means that a file matches<br />

if at least all the bits in mask are set. As a result, with symbolic mode, you<br />

cannot use a mask value that begins with a minus sign (−).<br />

If you use octal mode, find uses only the bottom 12 bits of mask. With an<br />

initial minus sign (−), find again matches only if at least all the limits in<br />

mask are set in the file permissions lists.<br />

–print Displays the current filename. This primary always matches.<br />

–prune<br />

Stops searching deeper into the tree at this point. If present, this primary<br />

always matches. –prune has no effect if –depth is also specified.<br />

–seclabel pattern<br />

Compares the file’s seclabel with pattern. If there is no match, the<br />

expression fails. The pattern uses the same syntax as filename generation<br />

(see “Filename Generation” on page 566).<br />

–size number[c]<br />

Matches if the size of the file is number blocks long, where a block is 512<br />

bytes. If you include the suffix c, the file size is number bytes.<br />

number is a decimal number, optionally preceded by a plus or minus sign. If<br />

a number is given without a sign, find tests for equality; a plus sign implies<br />

“greater than” or “older than,” and a minus sign implies “less than” or<br />

“newer than”.<br />

–type c<br />

Matches if the type of the file is the same as the type given by the<br />

character c. Possible values of the character are:<br />

b — Block special file (not supported for z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong><br />

<strong>Services</strong>)<br />

286 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!