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

  man pages->IRIX man pages -> what (1)              


WHAT(1)								       WHAT(1)

NAME    [Toc]    [Back]

     what - identify SCCS files

SYNOPSIS    [Toc]    [Back]

     what [-s] files

DESCRIPTION    [Toc]    [Back]

     what searches the given files for all occurrences of the pattern that
     get(1) 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

	  char 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

     will print

		  identification information

		  identification information

		  identification information

     what is intended to be used in conjunction	with the  command get(1),
     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

SEE ALSO    [Toc]    [Back]

     get(1), help(1)

DIAGNOSTICS    [Toc]    [Back]

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

BUGS    [Toc]    [Back]

     It	is possible that an unintended occurrence of the pattern @(#) could be
     found just	by chance, but this causes no harm in nearly all cases.

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
ident Tru64 identify files
ident HP-UX identify files in RCS
fstat FreeBSD identify active files
fuser Linux identify processes using files or sockets
ident OpenBSD identify RCS keyword strings in files
ident IRIX identify RCS keyword strings in files
ident FreeBSD identify RCS keyword strings in files
admin HP-UX create and administer SCCS files
admin IRIX create and administer SCCS files
val Tru64 Validates Source Code Control System (SCCS) files
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service