WHAT(1) — USER COMMANDS
NAME
what − identify the version of files under SCCS
SYNOPSIS
what filename
DESCRIPTION
what searches the given filenames 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 ~, >, NEWLINE, \, 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
file(1), get(1), help(1), sccs(1)
Programming Utilities and Libraries
DIAGNOSTICS
Use help(1) for explanations.
BUGS
It is 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 4.0 — Last change: 24 September 1987