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

Exit Values<br />

Portability<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v A missing filelist after –f<br />

v More than one –f option on the command line<br />

v Cannot find the magic file<br />

v Incorrect command-line option<br />

v Too few command-line arguments<br />

v Cannot access a specified file<br />

v Cannot open filelist<br />

v Cannot open the magic file<br />

v A format error in the magic file<br />

v Out of memory for reading or magic entries<br />

v A bad number in the magic file<br />

v A misplaced > in the magic file.<br />

P<strong>OS</strong>IX.2 User Portability Extension, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

All options are extensions to the P<strong>OS</strong>IX standard.<br />

Related Information<br />

See Appendix H for more information about the magic file format.<br />

find — Find a file meeting specified criteria<br />

Format<br />

Description<br />

find path ... expression<br />

find searches a given file hierarchy specified by path, finding files that match the<br />

criteria given by expression. Each directory, file, and special file is “passed through”<br />

expression. If you use the –exec, –ok, or –cpio primary, expression runs a<br />

specified command on each file found. A nonexistent expression or an expression<br />

with commands to run automatically uses the –print primary to display the name of<br />

any file that matches the criteria of expression.<br />

find builds expression from a set of primaries and operators; juxtaposition of two<br />

primaries implies a logical AND operator.<br />

Operators and Primaries<br />

find supports the following operators:<br />

–a Used between primaries for a logical AND. You can omit this operator to get<br />

the same result, since logical AND is assumed when no operator is used<br />

between two primaries.<br />

–o Used between primaries for a logical OR.<br />

! Precedes an expression in order to negate it.<br />

You can group primaries and operators using parentheses. You must delimit all<br />

primaries, operators, numbers, arguments, and parentheses with white space. Each<br />

file<br />

Chapter 2. Shell command descriptions 281

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

Saved successfully!

Ooh no, something went wrong!