|
|
The what(CP) command finds identifying information within any UNIX system file whose name is given as an argument. No key letters are accepted. The what command searches the given file(s) for all occurrences of the string @(#), which is the replacement for the %Z% ID keyword. (See get(CP).) It prints on the standard output whatever follows the string until the first double quote ("), greater than (>), backslash (\), new-line, or nonprinting NULL character.
For example, an SCCS file called s.prog.c (a C language program) contains the following line:
char id[]= "%W%";After the following command is used, the resulting g-file could be compiled to produce prog.o and a.out:
Then, the following command is executed:
what prog.c prog.o a.out
prog.c: prog.c: 3.4 prog.o: prog.c: 3.4 a.out: prog.c: 3.4The string searched for by what need not be inserted by means of an ID keyword of get; you can insert it in any convenient manner.