what
PURPOSE
Displays identifying information in files.
SYNOPSIS
what [-s] files
DESCRIPTION
The what command searches the named files for all occur-
rences of the pattern that get substitutes for the %Z%
keyletter (see "Identification Keywords"). By conven-
tion, the value substituted is "@(#)".
what writes to standard output whatever follows the
pattern up to but not including the first double quota-
tion mark ("""), greater than symbol (>), new-line char-
acter , backslash (\), or null character.
The what command is intended for use in conjunction with
the get command, which automatically inserts the identi-
fying information. You can also use what on files where
the information is inserted manually.
FLAGS
-s Searches for only the first occurrence of "@(#)".
EXAMPLES
Suppose that the file "test.c" contains a C program that
includes the line:
char ident[ ] = "@(#)Test Program";
If you compile "test.c" to produce "test.o" and "a.out",
then the command:
what test.c test.o a.out
displays:
test.c:
Test Program
test.o:
Test Program
a.out:
Test Program
RELATED INFORMATION
The following commands: "get," and "help."
The sccsfile file in AIX Operating System Technical Ref-
erence.
The discussion of SCCS in AIX Operating System Program-
ming Tools and Interfaces.