*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> what (1)              



NAME    [Toc]    [Back]

       what  -  Displays  identifying information for Source Code
       Control System (SCCS) files

SYNOPSIS    [Toc]    [Back]

       what [-s] file...

STANDARDS    [Toc]    [Back]

       Interfaces documented on this reference  page  conform  to
       industry standards as follows:

       what:  XCU5.0

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

OPTIONS    [Toc]    [Back]

       Searches for just the first occurrence of @(#).

OPERANDS    [Toc]    [Back]

       Pathname of the file to search.

DESCRIPTION    [Toc]    [Back]

       The what command searches the named files for  all  occurrences
  of the pattern that get(1) substitutes for the %Z%
       keyletter, and writes to standard output whatever  follows
       the  pattern up to, but not including, the first " (double
       quote),  >  (redirection  symbol),  newline  character,  \
       (backslash), or null character.

       By convention, the value substituted by get(1) for the %Z%
       keyletter is @(#).  (See the get(1) command or the  prs(1)
       command for a description of identification keywords.)

       If  you specify more than one file, each line of output is
       preceded by the name of the file it is read  from;  otherwise,
 the file name is not displayed.  If no file is specified,
 what reads from standard input.

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

EXIT STATUS    [Toc]    [Back]

       The  following  exit  values  are  returned:  Matches were
       found.  No matches were found.

EXAMPLES    [Toc]    [Back]

       Suppose that the file test.c contains  a  C  program  that
       includes either of the following lines:

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

       If you compile test.c to produce  test.o  and  a.out,  you
       could then enter the following command: what test.c test.o

       This command would produce the following displays: test.c:
            Test   Program   test.o:        Test  Program  a.out:
            Test Program


       The following environment variables affect  the  execution
       of  what:  Provides a default value for the internationalization
 variables that are unset or null. If LANG is unset
       or  null,  the corresponding value from the default locale
       is used.  If any  of  the  internationalization  variables
       contain an invalid setting, the utility behaves as if none
       of the variables had been defined.  If set to a  non-empty
       string value, overrides the values of all the other internationalization
 variables.  Determines the locale for  the
       interpretation of sequences of bytes of text data as characters
 (for example, single-byte as opposed  to  multibyte
       characters  in arguments and input files).  Determines the
       locale for the format and contents of diagnostic  messages
       written  to  standard  error.   Determines the location of
       message catalogues for the processing of LC_MESSAGES.

SEE ALSO    [Toc]    [Back]

       Commands:  admin(1), cdc(1),  comb(1),  delta(1),  get(1),
       prs(1),  rmdel(1),  sact(1),  sccs(1),  sccsdiff(1),  sccshelp(1), unget(1), val(1)

       Files:  sccsfile(4)

       Standards:  standards(5)

       Programming Support Tools

[ Back ]
 Similar pages
Name OS Title
prs Tru64 Displays key information in a Source Code Control System (SCCS) file
sact Tru64 Displays current Source Code Control System (SCCS) file editing status
sccsfile Tru64 Contains Source Code Control System (SCCS) information
val Tru64 Validates Source Code Control System (SCCS) files
sccshelp Tru64 Provides information about a Source Code Control System (SCCS) message or command
admin Tru64 Creates and initializes or changes (administers) Source Code Control System (SCCS) files
cdc Tru64 Changes the comments in a Source Code Control System (SCCS) delta
comb Tru64 Combines Source Code Control System (SCCS) deltas
delta Tru64 Saves editing changes in a Source Code Control System (SCCS) file
rmdel Tru64 Removes a delta from a Source Code Control System (SCCS) file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service