print identification strings
what [-s] file . . .
what searches the given files for all occurrences
of the pattern that the get command
substitutes for ``%Z%'' (this is ``@(#)'' at this printing)
and prints out what follows until the first ", >, new-line,
\, or NULL character.
For example, if the C program in file f.c contains
#ident "@(#)identification information"
and f.c is compiled to yield f.o and a.out,
then the command
what f.c f.o a.out
is intended to be used in conjunction with the get command,
which automatically inserts identifying information,
but it can also be used where the information is inserted manually.
Only one option exists:
Quit after finding the first occurrence of pattern in each file.
files can be specified using characters from supplementary
Characters from supplementary code sets can be used for
identification information following the keyword
Exit status is 0 if any matches are found, otherwise 1.
language-specific message file (see LANG on
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004