Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (d - f)
nd(1)
-mtime number
TRUE if the le was modied in the past number days. The argument number is a
decimal integer that can be specied as +number (more than number), -number (less
than number), or number (exactly number).
-ctime number
TRUE if the le inode was changed in the past number days. The argument number is a
decimal integer that can be specied as +number (more than number), -number (less
than number), or number (exactly number).
-exec command
TRUE if the command runs and returns a 0 (zero) value as exit status. The end of com-
mand must be punctuated by a quoted or escaped ; (semicolon). The command parame-
ter { } is replaced by the current pathname. If shell quoting is used in command, each
word in the command must be quoted separately. Also, the characters ; (semicolon) and
{}(braces) must appear as separate words on a command line.
The current directory for the invocation of command is the same as the current directory
when the nd command was started.
-ok command
Equivalent to the -exec expression, except that the nd command rst asks you whether
it should start command. If your response begins with y, or the locales equivalent of a
y, command is started. If the response is negative, command is not invoked and the
expression evaluates as FALSE. The end of command must be punctuated by a quoted
or escaped semicolon. If shell quoting is used in command, each word in the command
must be quoted separately. Also, the characters ; (semicolon) and {}(braces) must
appear as separate words on a command line.
-print Always TRUE; causes the current pathname to be displayed. The nd command
assumes a -print expression, unless the -exec, ls,or-ok expressions are present.
-newer file
TRUE if the current le was modied more recently than the le indicated by le.
-depth Always TRUE. This expression causes the descent of the directory hierarchy to be done
so that all entries in a directory are affected before the directory itself. This expression
can be useful when nd is used with the pax utility to transfer les contained in direc-
tories without write permission.
If the -depth expression is not specied, all entries in a directory are affected after the
directory itself. If -depth is specied, it applies to the entire expression, even if the -
depth primary would not normally be evaluated.
\( expression \)
TRUE if expression is TRUE.
-ls Always TRUE; causes the pathname argument to be printed together with its associated
statistics. These include, respectively, inode number, size in kilobytes (1024 bytes), pro-
tection mode, number of hard links, user, group, size in bytes, and modication time. If
the le is a special le, the size eld contains the major and minor device numbers. If the
le is a symbolic link, the pathname of the linked-to le is printed, preceded by ->. The
format of the -ls ag is identical to that of ls -gilds (note that formatting is done inter-
nally, without executing ls.)
527188-007 Hewlett-Packard Company 3139