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.

sh<br />

–o option<br />

True if shell option is on<br />

–O file<br />

True if file owner is the effective user id<br />

–p file True if file is a FIFO (named pipe)<br />

–r file True if file is readable (checks permission bits and access control)<br />

–s file True if size of the file is nonzero<br />

–S file True if file is a socket<br />

–t fd True if the numeric file descriptor fd is open and associated with a<br />

terminal<br />

–T file True if the file is tagged as text<br />

–u file True if the set-user-ID attribute of file is on<br />

–w file<br />

True if file is writable (checks permission bits and access control)<br />

–x file True if file is executable (checks permission bits and access<br />

control)<br />

–z string<br />

True if length of the string is zero<br />

string True if string is not a null string<br />

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

string = pattern<br />

True if string matches pattern (== is recommended to avoid<br />

confusion with the test command syntax)<br />

string == pattern<br />

True if string matches pattern. Quote pattern to treat it as a string.<br />

See Patterns below.<br />

string1 != pattern<br />

True if string does not match patterns. See Patterns below.<br />

string1 < string2<br />

True if string1 comes before string2 in the collation order defined in<br />

the current locale<br />

string1 > string2<br />

True if string1 comes after string2 in the collation order defined in<br />

the current locale<br />

exp1 –eq exp2<br />

True if arithmetic expression exp1 and exp2 are equal<br />

exp1 –ge exp2<br />

True if arithmetic expression exp1 is greater than or equal to exp2<br />

exp1 –gt exp2<br />

True if arithmetic expression exp1 is greater than exp2<br />

exp1 –le exp2<br />

True if arithmetic expression exp1 is less than or equal to exp2<br />

exp1 –lt exp2<br />

True if arithmetic expression exp1 is less than exp2

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

Saved successfully!

Ooh no, something went wrong!