Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ what.bsd(1) — Domain/IX SR9.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

get(1)

help(1)

WHAT(1)

NAME

what − identify SCCS files

USAGE

what [−s] files

DESCRIPTION

What searches the given files for all occurrences of the pattern that get(1) substitutes for %Z% (this is @(#) at this printing).  It then prints what follows until the first tilde (~), greater-than character (>), newline, backslash (\), or null character. 

Although what is meant to be used with get(1), which automatically inserts identifying information, you can also use it where information is inserted manually. 

Specifying the −s option causes what to quit after finding the first occurrence of a pattern in each file. 

EXAMPLE

If the C program in file f.c contains

static char ident[ ] = “@(#)identification information”;,

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

what f.c f.o a.out

prints the following information:

f.c:
identification information

f.o:
identification information

a.out:
identification information

CAUTIONS

By chance, an unintended occurrence of the @(#) pattern could be found, but this causes no harm in most cases. 

DIAGNOSTICS

Exit status is 0 if any matches are found; otherwise, it is 1. 

Use help(1) for explanations. 

RELATED INFORMATION

get(1), help(1). 

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