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

  man pages->HP-UX 11i man pages -> what (1)              
Title
Content
Arch
Section
 

Contents


 what(1)                                                             what(1)




 NAME    [Toc]    [Back]
      what - get SCCS identification information

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

 DESCRIPTION    [Toc]    [Back]
      The what command searches the given files for all occurrences of the
      pattern that get(1) substitutes for %Z% (currently @(#) 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

           char ident[] = "@(#)identification information";

      and f.c is compiled to yield f.o and a.out, 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
      (see get(1)) which automatically inserts identifying information, but
      it can also be used where the information is inserted manually.

    Options    [Toc]    [Back]
      what recognizes the following option:

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

 EXTERNAL INFLUENCES    [Toc]    [Back]
    Environment Variables
      LC_CTYPE determines the interpretation of the pattern substituted for
      %Z% as single- and/or multi-byte characters.

      LC_MESSAGES determines the language in which messages are displayed.

      If LC_CTYPE or LC_MESSAGES is not specified in the environment or is
      set to the empty string, the value of LANG is used as a default for
      each unspecified or empty variable.  If LANG is not specified or is
      set to the empty string, a default of "C" (see lang(5)) is used
      instead of LANG.  If any internationalization variable contains an
      invalid setting, what behaves as if all internationalization variables
      are set to "C".  See environ(5).



 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 what(1)                                                             what(1)




    International Code Set Support    [Toc]    [Back]
      Single-byte and multi-byte character code sets are supported.

 DIAGNOSTICS    [Toc]    [Back]
      Exit status is 0 if any matches are found, otherwise 1.  Use help for
      explanations (see sccshelp(1)).

 WARNINGS    [Toc]    [Back]
      The pattern @(#) may occasionally appear unintentionally in random
      files, but this causes no harm in nearly all cases.

 SEE ALSO    [Toc]    [Back]
      get(1), sccshelp(1).

 STANDARDS CONFORMANCE    [Toc]    [Back]
      what: SVID2, SVID3, XPG2, XPG3, XPG4


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
aux IRIX initialize auxiliary identification and authentication information
sccsfile Tru64 Contains Source Code Control System (SCCS) information
prs Tru64 Displays key information in a Source Code Control System (SCCS) file
sccshelp Tru64 Provides information about a Source Code Control System (SCCS) message or command
what Tru64 Displays identifying information for Source Code Control System (SCCS) files
geteuid FreeBSD get user identification
model HP-UX HP-UX machine identification
uname NetBSD get system identification
getuid NetBSD get user identification
getuid OpenBSD get user identification
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service