Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ what(1) — Atari System V 1.1-06

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

get(1)

help(1)

mcs(1)





   what(1)           (Source Code Control System Utilities)            what(1)


   NAME
         what - print identification strings

   SYNOPSIS
         what [-s] files

   DESCRIPTION
         what searches the given files for all occurrences of the pattern that
         the get command 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 f.c contains

               #ident "@(#)identification information"

         and 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 get command,
         which automatically inserts identifying information, but it can also
         be used where the information is inserted manually.  Only one option
         exists:

               -s      Quit after finding the first occurrence of pattern in
                       each file.

   EXAMPLE
         If test1.c has the following string,

               #ident "@(#)1 test1.c2";

         typing,

               what test1.c

         would print the following,

               test1.c:
                    1 test1.c2



   8/91                                                                 Page 1









   what(1)           (Source Code Control System Utilities)            what(1)


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

   DIAGNOSTICS
         Exit status is 0 if any matches are found, otherwise 1.  See help(1)
         for explanations.















































   Page 2                                                                 8/91





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