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.

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

–t fd True if the numeric file descriptor fd is open and associated with a 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 True if file is writable (based on the security product’s check against the<br />

effective user/group)<br />

–x file True if file is executable (based on the security product’s check against the<br />

effective user/group)<br />

–z string<br />

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

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

string1 = string2<br />

True if string1 and string2 are identical<br />

string != string<br />

True if string1 and string2 are not identical<br />

number1 –eq number2<br />

True if number1 and number2 are equal<br />

Within the shell, either number can be an arbitrary shell arithmetic expression; the<br />

same applies for the other five numerical comparisons that follow. Both number1<br />

and number2 must be integers.<br />

number1 –ge number2<br />

True if number1 is greater than or equal to number2<br />

number1 –gt number2<br />

True if number1 is greater than number2<br />

number1 –le number2<br />

True if number1 is less than or equal to number2<br />

number1 –lt number2<br />

True if number1 is less than number2<br />

number1 –ne number2<br />

True if number1 is not equal to number2<br />

file1 –nt file2<br />

True if file1 is newer than file2<br />

file1 –ot file2<br />

True if file1 is older than file2<br />

file1 –ef file2<br />

True if file1 has the same device and inode number as file2<br />

file –CS codeset<br />

True if the file is tagged with the codeset<br />

file –Ml seclabel<br />

True if the file has the multilevel security seclabel seclabel. False if the file<br />

does not have a seclabel that matches seclabel<br />

expr1 –a expr2<br />

Logical AND; true if both expr1 and expr2 are true<br />

test<br />

Chapter 2. Shell command descriptions 695

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

Saved successfully!

Ooh no, something went wrong!