Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ what(1) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

get(1)

help(1)

mcs(1)

what(1)                                                             what(1)

NAME
     what - identify files

SYNOPSIS
     what [-s] [--] file...

DESCRIPTION
     what searches the given files for all occurrences of the pattern that
     the get(1) command substitutes for %Z% (this is @(#) at this printing)
     and prints out the characters which follow it, up to the first ", >,
     newline, \ or null character.

     For example, if the C program contains the following statement line in
     the file f.c:

          #ident "@(#)identification information";

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

          what f.c f.o a.out

     prints

          f.c:   Identification information

          f.o:   Identification information

          a.out: Identification information

     what is intended to be used in conjunction with the SCCS get command,
     which automatically inserts identifying information, but it can also
     be used where the information is inserted by another means (e.g. with
     an editor).

OPTIONS
     -s   Terminate the search as soon as the first occurrence of the pat-
          tern is found.

     --   If the first filename begins with a dash (-), the end of the
          command-line options must be marked with --.

EXIT STATUS
     Exit status is 0 if any matches are found, otherwise 1.












Page 1                       Reliant UNIX 5.44                Printed 11/98

what(1)                                                             what(1)

LOCALE
     The language of the message texts is governed by the environment vari-
     able LCALL, LCMESSAGES or LANG.

     When the default is set, the system behaves as if it were not interna-
     tionalized, i.e. the message texts are in English. You must change one
     of these variables in order to change the language of the message
     texts.

     Detailed information on the dependencies of the environment variables
     and on internationalization in general can be found in the manual
     "Programmer's Guide: Internationalization - Localization". Refer also
     to environ(5) for information on setting the user environment.

SEE ALSO
     get(1), help(1), mcs(1).






































Page 2                       Reliant UNIX 5.44                Printed 11/98

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