xref: /netbsd-src/usr.bin/what/what.1 (revision 01869ca4d24a86379a68731bf9706a9f0820fe4e)
1*01869ca4Swiz.\"	$NetBSD: what.1,v 1.15 2017/07/03 21:34:22 wiz Exp $
2c0b8fbbaSjtc.\"
3c0b8fbbaSjtc.\" Copyright (c) 1980, 1991, 1993
4c0b8fbbaSjtc.\"	The Regents of the University of California.  All rights reserved.
561f28255Scgd.\"
661f28255Scgd.\" Redistribution and use in source and binary forms, with or without
761f28255Scgd.\" modification, are permitted provided that the following conditions
861f28255Scgd.\" are met:
961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright
1061f28255Scgd.\"    notice, this list of conditions and the following disclaimer.
1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright
1261f28255Scgd.\"    notice, this list of conditions and the following disclaimer in the
1361f28255Scgd.\"    documentation and/or other materials provided with the distribution.
1489aaa1bbSagc.\" 3. Neither the name of the University nor the names of its contributors
1561f28255Scgd.\"    may be used to endorse or promote products derived from this software
1661f28255Scgd.\"    without specific prior written permission.
1761f28255Scgd.\"
1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2161f28255Scgd.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2861f28255Scgd.\" SUCH DAMAGE.
2961f28255Scgd.\"
30c0b8fbbaSjtc.\"     @(#)what.1	8.1 (Berkeley) 6/6/93
3161f28255Scgd.\"
3267d56d84Sdholland.Dd December 12, 2015
3361f28255Scgd.Dt WHAT 1
349e44e9b5Sgarbled.Os
3561f28255Scgd.Sh NAME
3661f28255Scgd.Nm what
37c49b4850Skleink.Nd search files for SCCS identifiers
3861f28255Scgd.Sh SYNOPSIS
39451d258eSlukem.Nm
40c49b4850Skleink.Op Fl s
41c49b4850Skleink.Ar
4261f28255Scgd.Sh DESCRIPTION
43c49b4850SkleinkThe
44451d258eSlukem.Nm
45c49b4850Skleinkutility reads each
46c49b4850Skleink.Ar file
47c49b4850Skleinkoperand and searches for sequences of the form
4861f28255Scgd.Dq \&@(#)
4967d56d84Sdhollandas inserted by SCCS and SCCS-compatible version control systems.
5057947ac5SwizIt prints the remainder of the string following this marker, up to
5157947ac5Swiza null character, newline, double quote, backslash, or
52*01869ca4Swiz.Dq \&>
53c49b4850Skleinkcharacter.
54c49b4850Skleink.Pp
55c49b4850SkleinkIf the
56c49b4850Skleink.Fl s
5757947ac5Swizoption is specified, only the first occurrence of an identification string in
58c49b4850Skleinkeach file is printed.
594918722aSkleink.Sh EXIT STATUS
60c49b4850SkleinkThe
61c49b4850Skleink.Nm
62c49b4850Skleinkutility exits 0 if any matches were found, and 1 otherwise.
63c49b4850Skleink.Sh STANDARDS
64c49b4850SkleinkThe
65c49b4850Skleink.Nm
66c49b4850Skleinkutility conforms to
67c49b4850Skleink.St -xpg4.2 .
689b48b428Swiz.Sh HISTORY
699b48b428SwizThe
709b48b428Swiz.Nm
719b48b428Swizcommand appeared in
729b48b428Swiz.Bx 4.0 .
7361f28255Scgd.Sh BUGS
7461f28255ScgdAs
7561f28255Scgd.Bx
7661f28255Scgdis not licensed to distribute
7761f28255Scgd.Tn SCCS
7861f28255Scgdthis is a rewrite of the
79451d258eSlukem.Nm
8061f28255Scgdcommand which is part of
8161f28255Scgd.Tn SCCS ,
8257947ac5Swizand may not behave exactly the same as that command does.
83