WHAT(1) GENIX Programmer's Manual WHAT(1)
NAME
what - identify SCCS files
SYNOPSIS
what [-f] files
DESCRIPTION
What searches the given files for all occurrences of the pattern
that get(1) substitutes for %Z% (this is @(#) at this printing) and
prints out what follows until the first ", >, new-line, \, or null
character. If the -f option is given, only the first such pattern
is printed for each file. Otherwise, all such patterns are found.
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
What is intended to be used in conjunction with the SCCS command
get(1), which automatically inserts identifying information, but it
can also be used where the information is inserted manually.
SEE ALSO
get(1), sccs(1), sccshelp(1).
DIAGNOSTICS
Use sccshelp(1) for explanations.
BUGS
It's possible that an unintended occurrence of the pattern @(#)
could be found just by chance, but this causes no harm in nearly all
cases.
Printed 11/16/83 1