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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

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

–audit auditmask<br />

The -audit primary is used to match the user audit bits. auditmask can be<br />

in octal or in symbolic form. The mask can be preceded by a - character (as<br />

in the perm primary), but it is ignored.<br />

Symbolic form is an operation=condition list, separated by commas:<br />

[rwx]=[sf]<br />

where:<br />

=sf Success or failure on any of rwx<br />

r=s Success on read<br />

r=s, x=sf<br />

Success on read or exec, failure on exec<br />

r, w=s Incorrect syntax<br />

x Incorrect syntax<br />

Octal form is specified by using the chaudit bit constant definitions in the<br />

/usr/include/sys/stat.h header file. For example, in stat.h, the flag for failing<br />

read accesses is AUDTREADFAIL. It is defined to be 0x02000000, which<br />

has an octal value of 200000000. This octal value can be used as the<br />

auditmask to find failure on read.<br />

–cpio cpio-file<br />

Writes the file found to the target file cpio-file in cpio format. This is<br />

equivalent to:<br />

find ... | cpio -o >cpio-file<br />

This primary matches if the command succeeds.<br />

–ctime number<br />

Matches if someone has changed the attributes of the file exactly number<br />

days ago.<br />

–depth<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 />

Processes directories after their contents. If present, this primary always<br />

matches.<br />

–exec command ;<br />

Takes all arguments between –exec and the semicolon as a command line,<br />

replacing any argument that is exactly {} (that is, the two brace characters)<br />

with the current filename. It then executes the resulting command line,<br />

treating a return status of zero from this command as a successful match,<br />

nonzero as failure. You must delimit the terminal semicolon with white<br />

space.<br />

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

must escape it, either by enclosing it in single quotes or by preceding it with<br />

/.<br />

–ext c Matches when the regular file has the extended attribute specified by<br />

284 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!