Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

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

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

get(1)

help(1)



WHAT(1)                  DOMAIN/IX SYS5                   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 informa-
          tion'';,

     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.





Printed 12/4/86                                            WHAT-1







WHAT(1)                  DOMAIN/IX SYS5                   WHAT(1)



     Use help(1) for explanations.

RELATED INFORMATION
     get(1), help(1).

















































WHAT-2                                            Printed 12/4/86





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