what(1)
what --
print identification strings
Synopsis
what [-s] file . . .
Description
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
prints
f.c:
identification information
f.o:
identification information
a.out:
identification information
what
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:
- -s
-
Quit after finding the first occurrence of pattern in each file.
International functions
files can be specified using characters from supplementary
code sets.
Characters from supplementary code sets can be used for
identification information following the keyword
%Z%.
Diagnostics
Exit status is 0 if any matches are found, otherwise 1.
See .CM help 1 for explanations.
Files
- /usr/lib/locale/locale/LC_MESSAGES/uxepu
-
language-specific message file (see LANG on
environ(5).)
References
get(1),
help(1),
mcs(1)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.