Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sccs(1)

get(1)

help(1)

file(1)

WHAT(1)  —  USER COMMANDS

NAME

what − identify the version of 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 program.c contains

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

and program.c is compiled to yield program.o and a.out, 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  command get(1), which automatically inserts identifying information, but it can also be used where the information is inserted manually.

SEE ALSO

sccs(1), get(1), help(1), file(1). 
The Source Code Control System in Programming Tools for the Sun System

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. 

Sun Release 2.0  —  Last change: 16 February 1984

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