Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ what(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

get

sccshelp

sccsfile



WHAT(1,C)                   AIX Commands Reference                    WHAT(1,C)



-------------------------------------------------------------------------------
what



PURPOSE

Displays identifying information in files.

SYNTAX


        +------+
what ---|      |-- file --|
        +- -s -+ ^      |
                 +------+


DESCRIPTION

The what command searches the named files for all occurrences of the pattern
that get substitutes for the @(#) keyletter (see "Identification Keywords").  By
convention, the value substituted is "@(#)".  what writes to standard output
whatever follows the pattern up to but not including the first double quotation
mark ("""), greater than symbol (>), new-line character, backslash (\), or null
character.

The what command is intended for use in conjunction with the get command, which
automatically inserts the identifying information.  You can also use what on
files where the information is inserted manually.

FLAGS

-s Searches for only the first occurrence of "@(#)".

EXAMPLES

Suppose that the file "test.c" contains a C program that includes the line:

  char ident[ ] = "@(#)Test Program";

If you compile "test.c" to produce "test.o" and "a.out", the command:

  what test.c test.o a.out

displays:









Processed November 8, 1990         WHAT(1,C)                                  1





WHAT(1,C)                   AIX Commands Reference                    WHAT(1,C)



  test.c:
          Test Program
  test.o:
          Test Program
  a.out:
          Test Program

RELATED INFORMATION

See the following commands:  "get," and  "sccshelp."

See the sccsfile file in AIX Operating System Technical Reference.

See the discussion of SCCS in AIX Operating System Programming Tools and
Interfaces.








































Processed November 8, 1990         WHAT(1,C)                                  2



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