Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ what(1) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

get(1)

help(1)

WHAT(1)  —  Silicon Graphics

NAME

what − identify SCCS files

SYNOPSIS

what files

DESCRIPTION

What searches the given files for all occurrences of the pattern that get(1) 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

What is intended to be used in conjunction with the SCCS command get(1), which automatically inserts identifying information, but it can also be used where the information is inserted manually.

EXAMPLE

If "test1.c" has the following string

char v[] = "@(#)1 test1.c 2";

typing

what test1.c

would print the following:

test1.c:
1 test1.c 2

SEE ALSO

get(1), help(1). 

DIAGNOSTICS

Use help(1) for explanations.

BUGS

It’s possible that an unintended occurrence of the pattern @(#) could be found just by chance, but this causes no harm in nearly all cases. 

Version 3.6  —  December 20, 1987

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