what(1) CLIX what(1)
NAME
what - Identifies SCCS files
SYNOPSIS
what [-s] file ...
FLAGS
-s Quits after finding the first occurrence of pattern in each file.
DESCRIPTION
The what command searches the given files for all occurrences of the
pattern that the get command substitutes for %Z% (this is @(#) at this
printing) and displays what follows until the first tilde (~), right
angle-bracket (>), newline, \ , or null character. For example, if the C
program in file f.c contains the following
char ident[] = "@(#)identification information";
and f.c is compiled to yield f.o and a.out, then the following command
what f.c f.o a.out
will display
f.c: identification information
f.o: identification information
a.out: identification information
The what command is intended to be used in conjunction with the get
command, which automatically inserts identifying information, but it can
also be used where the information is inserted manually.
NOTES
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.
EXIT VALUES
Exit status is 0 if any matches are found, otherwise 1. Use help(1) for
explanations.
RELATED INFORMATION
Commands: get(1), help(1)
2/94 - Intergraph Corporation 1