Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

ksh(1) OSS Shell and Utilities Reference Manual
-g file TRUE, if le exists and has its setgid bit set.
-G file TRUE, if le exists and its group ID matches the effective group ID of this process.
-k file TRUE, if le exists and has its sticky bit set.
-L file TRUE, if le exists and is a symbolic link.
-n string TRUE, if length of string is nonzero.
-o option
TRUE, if option named option is on.
-O file TRUE, if le exists and is owned by the effective user ID of this process.
-p file TRUE, if le exists and is a FIFO special le or a pipe.
-r file TRUE, if le exists and is readable by current process.
-s file TRUE, if le exists and has size greater than 0 (zero).
-S file TRUE, if le exists and is a socket.
-t file_des
TRUE, if le descriptor number le_des is open and associated with a terminal device.
-u file TRUE, if le exists and has its setuid bit set.
-w file TRUE, if le exists and is writable by current process.
-x file TRUE, if le exists and is executable by current process. If le exists and is a direc-
tory, then the current process has permission to search in the directory.
-z string TRUE, if length of string is 0 (zero).
file1 -nt file2
TRUE, if le1 exists and is newer than le2.
file1 -ot file2
TRUE, if le1 exists and is older than le2.
file1 -ef file2
TRUE, if le1 and le2 exist and refer to the same le.
string = pattern
TRUE, if string matches pattern.
string != pattern
TRUE, if string does not match pattern.
string1 < string2
TRUE, if string1 collates before string2.
string1 > string2
TRUE, if string1 collates after string2.
expression1 -eq expression2
TRUE, if expression1 is equal to expression2.
518 Hewlett-Packard Company 527188-003