Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

get(1)

sccshelp(1)

sccs(1)

what(1)

Name

what − display ID keywords from SCCS file

Syntax

what [-s] files

Description

The what command searches the given files for all occurrences of the pattern that get() substitutes for %Z% (this is @(#) at this printing) and prints out what follows until the first ", >, new-line, \, or null character.  For example, if the C program in file f.c contains

char ident[] = "@(#)identification information";

and f.c is compiled to yield f.o and a.out, then the command

what f.c f.o a.out

will print

f.c:
identification information

f.o:
identification information

a.out:
identification information

Use what in conjunction with the SCCS command get(,), which automatically inserts identifying information, but information can also be inserted manually.

Restrictions

It is possible that an unintended occurrence of the pattern @(#) could be found.  This causes no harm in nearly all cases. 

Diagnostics

Use sccshelp() for explanations.

Options

-s Quit after finding the first occurrence of the pattern in the file. 

See Also

get(1), sccshelp(1), sccs(1)
Guide to the Source Code Control System

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026