identify SCCS files
The what command searches the given files
for all occurrences of the pattern that
substitutes for %Z% (@(#))
and prints out what follows until the first occurrence of
any of the following: ", >,
new-line, \, or null character.
For example, assuming that a C program in file f.c contains:
char ident = "@(#)identification information";
If f.c is compiled to yield f.o and
a.out, then the command:
what -s f.c f.o a.out
The what command is intended to be used in
conjunction with the SCCS command
which automatically inserts identifying
information, but it can also be used where the information is inserted manually.
Only one option is accepted:
Quit after finding the first occurrence of pattern in each file.
Exit status is 0 if any matches are found, otherwise 1.
It is possible that an unintended occurrence of the pattern
@(#) could be found just by chance, but this
causes no harm in nearly all cases.
what is conformant with:
X/Open Portability Guide, Issue 3, 1989
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005