what — Extract SCCS Version Information from a File

Synopsis

/usr/ccs/bin/what [-s] filename... 

Description

Use the what command to print identification strings for Source Code Control System (SCCS) files. The what command searches each file name for occurrences of the pattern @(#) that the SCCS get command (see sccs-get(1)) substitutes for the %Z% ID keyword and prints what follows up to a ", >, newline, \, or null character.

Options

-s Stop after the first occurrence of the pattern.

Examples

For example, if a C program in file program.c contains the line

char sccsid[] = "@(#)identification information"; 
and program.c is compiled to yield program.o and a.out, the following command lists the string following the @(#).
castle% what ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.