what(1) General Commands Manual what(1)
Name
what - display ID keywords from SCCS file
Syntax
what [-s] files
Description
The command searches the given files for all occurrences of the pattern that 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
char 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
will print
f.c:
identification information
f.o:
identification information
a.out:
identification information
Use in conjunction with the SCCS command which automatically inserts identifying information, but information can also be inserted manu-
ally.
Restrictions
It is possible that an unintended occurrence of the pattern @(#) could be found. This causes no harm in nearly all cases.
Diagnostics
Use for explanations.
Options
-s Quit after finding the first occurrence of the pattern in the file.
See Also
get(1), sccshelp(1), sccs(1)
Guide to the Source Code Control System
what(1)