DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Source code control system (SCCS)

what command

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:

get -r3.4 s.prog.c

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.4
The 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.
Next topic: sccsdiff command
Previous topic: cdc command

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003