1*5959d954SThomas Cort.\" $NetBSD: what.1,v 1.13 2003/08/07 11:17:15 agc Exp $ 2*5959d954SThomas Cort.\" 3*5959d954SThomas Cort.\" Copyright (c) 1980, 1991, 1993 4*5959d954SThomas Cort.\" The Regents of the University of California. All rights reserved. 5*5959d954SThomas Cort.\" 6*5959d954SThomas Cort.\" Redistribution and use in source and binary forms, with or without 7*5959d954SThomas Cort.\" modification, are permitted provided that the following conditions 8*5959d954SThomas Cort.\" are met: 9*5959d954SThomas Cort.\" 1. Redistributions of source code must retain the above copyright 10*5959d954SThomas Cort.\" notice, this list of conditions and the following disclaimer. 11*5959d954SThomas Cort.\" 2. Redistributions in binary form must reproduce the above copyright 12*5959d954SThomas Cort.\" notice, this list of conditions and the following disclaimer in the 13*5959d954SThomas Cort.\" documentation and/or other materials provided with the distribution. 14*5959d954SThomas Cort.\" 3. Neither the name of the University nor the names of its contributors 15*5959d954SThomas Cort.\" may be used to endorse or promote products derived from this software 16*5959d954SThomas Cort.\" without specific prior written permission. 17*5959d954SThomas Cort.\" 18*5959d954SThomas Cort.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19*5959d954SThomas Cort.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20*5959d954SThomas Cort.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21*5959d954SThomas Cort.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22*5959d954SThomas Cort.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23*5959d954SThomas Cort.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24*5959d954SThomas Cort.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25*5959d954SThomas Cort.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26*5959d954SThomas Cort.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27*5959d954SThomas Cort.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28*5959d954SThomas Cort.\" SUCH DAMAGE. 29*5959d954SThomas Cort.\" 30*5959d954SThomas Cort.\" @(#)what.1 8.1 (Berkeley) 6/6/93 31*5959d954SThomas Cort.\" 32*5959d954SThomas Cort.Dd February 22, 1999 33*5959d954SThomas Cort.Dt WHAT 1 34*5959d954SThomas Cort.Os 35*5959d954SThomas Cort.Sh NAME 36*5959d954SThomas Cort.Nm what 37*5959d954SThomas Cort.Nd search files for SCCS identifiers 38*5959d954SThomas Cort.Sh SYNOPSIS 39*5959d954SThomas Cort.Nm 40*5959d954SThomas Cort.Op Fl s 41*5959d954SThomas Cort.Ar 42*5959d954SThomas Cort.Sh DESCRIPTION 43*5959d954SThomas CortThe 44*5959d954SThomas Cort.Nm 45*5959d954SThomas Cortutility reads each 46*5959d954SThomas Cort.Ar file 47*5959d954SThomas Cortoperand and searches for sequences of the form 48*5959d954SThomas Cort.Dq \&@(#) 49*5959d954SThomas Cortas inserted by the source code control system. 50*5959d954SThomas CortIt prints the remainder of the string following this marker, up to 51*5959d954SThomas Corta null character, newline, double quote, backslash, or 52*5959d954SThomas Cort.Dq \&\*[Gt] 53*5959d954SThomas Cortcharacter. 54*5959d954SThomas Cort.Pp 55*5959d954SThomas CortIf the 56*5959d954SThomas Cort.Fl s 57*5959d954SThomas Cortoption is specified, only the first occurrence of an identification string in 58*5959d954SThomas Corteach file is printed. 59*5959d954SThomas Cort.Sh EXIT STATUS 60*5959d954SThomas CortThe 61*5959d954SThomas Cort.Nm 62*5959d954SThomas Cortutility exits 0 if any matches were found, and 1 otherwise. 63*5959d954SThomas Cort.Sh STANDARDS 64*5959d954SThomas CortThe 65*5959d954SThomas Cort.Nm 66*5959d954SThomas Cortutility conforms to 67*5959d954SThomas Cort.St -xpg4.2 . 68*5959d954SThomas Cort.Sh HISTORY 69*5959d954SThomas CortThe 70*5959d954SThomas Cort.Nm 71*5959d954SThomas Cortcommand appeared in 72*5959d954SThomas Cort.Bx 4.0 . 73*5959d954SThomas Cort.Sh BUGS 74*5959d954SThomas CortAs 75*5959d954SThomas Cort.Bx 76*5959d954SThomas Cortis not licensed to distribute 77*5959d954SThomas Cort.Tn SCCS 78*5959d954SThomas Cortthis is a rewrite of the 79*5959d954SThomas Cort.Nm 80*5959d954SThomas Cortcommand which is part of 81*5959d954SThomas Cort.Tn SCCS , 82*5959d954SThomas Cortand may not behave exactly the same as that command does. 83