xref: /freebsd/usr.bin/ident/ident.1 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1c048a83fSBaptiste Daroussin.\" Copyright (c) 2015 Baptiste Daroussin <bapt@FreeBSD.org>
2c048a83fSBaptiste Daroussin.\" All rights reserved.
3c048a83fSBaptiste Daroussin.\"
4c048a83fSBaptiste Daroussin.\" Redistribution and use in source and binary forms, with or without
5c048a83fSBaptiste Daroussin.\" modification, are permitted provided that the following conditions
6c048a83fSBaptiste Daroussin.\" are met:
7c048a83fSBaptiste Daroussin.\" 1. Redistributions of source code must retain the above copyright
8c048a83fSBaptiste Daroussin.\"    notice, this list of conditions and the following disclaimer.
9c048a83fSBaptiste Daroussin.\" 2. Redistributions in binary form must reproduce the above copyright
10c048a83fSBaptiste Daroussin.\"    notice, this list of conditions and the following disclaimer in the
11c048a83fSBaptiste Daroussin.\"    documentation and/or other materials provided with the distribution.
12c048a83fSBaptiste Daroussin.\"
13c048a83fSBaptiste Daroussin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14c048a83fSBaptiste Daroussin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15c048a83fSBaptiste Daroussin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16c048a83fSBaptiste Daroussin.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17c048a83fSBaptiste Daroussin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18c048a83fSBaptiste Daroussin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19c048a83fSBaptiste Daroussin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20c048a83fSBaptiste Daroussin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21c048a83fSBaptiste Daroussin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22c048a83fSBaptiste Daroussin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23c048a83fSBaptiste Daroussin.\" SUCH DAMAGE.
24c048a83fSBaptiste Daroussin.\"
25*a5b4dfcfSGordon Bergling.Dd July 25, 2015
26c048a83fSBaptiste Daroussin.Dt IDENT 1
27c048a83fSBaptiste Daroussin.Os
28c048a83fSBaptiste Daroussin.Sh NAME
29c048a83fSBaptiste Daroussin.Nm ident
30c048a83fSBaptiste Daroussin.Nd identify RCS keyword string in files
31c048a83fSBaptiste Daroussin.Sh SYNOPSIS
32c048a83fSBaptiste Daroussin.Nm
33c048a83fSBaptiste Daroussin.Op Fl q
34c048a83fSBaptiste Daroussin.Op Fl V
3599ed5c6eSBaptiste Daroussin.Op Ar
36c048a83fSBaptiste Daroussin.Sh DESCRIPTION
37c048a83fSBaptiste DaroussinThe
38c048a83fSBaptiste Daroussin.Nm
39c048a83fSBaptiste Daroussinutility searches for all instances of the pattern
40c048a83fSBaptiste Daroussin.Sq $keyword: text$
41c048a83fSBaptiste Daroussinin
42c048a83fSBaptiste Daroussin.Ar files .
43c048a83fSBaptiste Daroussin.Pp
44c048a83fSBaptiste DaroussinIf no arguments are passed, then
45c048a83fSBaptiste Daroussin.Nm
46c048a83fSBaptiste Daroussinparses the standard input.
47c048a83fSBaptiste Daroussin.Pp
48c048a83fSBaptiste Daroussin.Em keyword
49c048a83fSBaptiste Daroussinmust only be composed of alphanumeric values in the C locale, followed by
50c048a83fSBaptiste Daroussin.Sq \&:
51c048a83fSBaptiste Daroussinand a space.
52c048a83fSBaptiste Daroussin.Pp
53c048a83fSBaptiste DaroussinThese options are supported:
54c048a83fSBaptiste Daroussin.Bl -tag -width "XXX"
55c048a83fSBaptiste Daroussin.It Fl q
56c048a83fSBaptiste DaroussinQuiet mode: suppress warnings if no pattern found.
57c048a83fSBaptiste Daroussin.It Fl V
58c048a83fSBaptiste DaroussinDo nothing, added for compatibility with GNU ident.
59c048a83fSBaptiste Daroussin.El
60c048a83fSBaptiste Daroussin.Sh EXIT STATUS
61c048a83fSBaptiste Daroussin.Ex -std ident
62c048a83fSBaptiste Daroussin.Sh AUTHORS
63c048a83fSBaptiste DaroussinThis version of the
64c048a83fSBaptiste Daroussin.Nm
65c048a83fSBaptiste Daroussinutility was written by
66c048a83fSBaptiste Daroussin.An Baptiste Daroussin Aq Mt bapt@FreeBSD.org .
67