PWB1/usr/man/man1/what.1

Compare this file to the similar file:
Show the results in this format:

.th WHAT I 5/31/77
.tr $%
.sh NAME
what \*- identify files
.sh SYNOPSIS
.tr ##
.bd what
name ...
.sh DESCRIPTION
.it What
searches the given files for all occurrences
of the pattern which
.it get\^\c
(I) substitutes for $Z% (this is
@(#)
at this printing)
and prints out what follows until the
first `"', `>', newline, or null character.
For example, if the C program in file `f.c' contains
.s2
.lp +5 0
char iden\(ru\(ru\(ru[] "@(#)identification information";
.i0
.s2
and f.c is compiled to yield `f.o' and `a.out',
then the command
.s2
.lp +5 0
.bd what
f.c f.o a.out
.i0
.s2
will print
.s2
.nf
.lp +13 8
f.c:
identification information
.lp +13 8
f.o:
identification information
.lp +13 8
a.out:
identification information
.fi
.i0
.s3
.it What
is intended to be used in conjunction with the SCCS command
.it get\^\c
(I),
which automatically inserts identifying information,
but it can also be used where the information is inserted manually.
.sh "SEE ALSO"
get(I), help(I)
.sh DIAGNOSTICS
Use
.it help\^\c
(I) for explanations.
.sh 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.
.tr $$