1IDENT(1)                    General Commands Manual                   IDENT(1)
2
3
4

NAME

6       ident - identify RCS keyword strings in files
7

SYNOPSIS

9       ident [ -q ] [ -V ] [ file ... ]
10

DESCRIPTION

12       ident searches for all instances of the pattern $keyword: text $ in the
13       named files or, if no files are named, the standard input.
14
15       These patterns are normally inserted automatically by the  RCS  command
16       co(1), but can also be inserted manually.  The option -q suppresses the
17       warning given if there are no patterns in a file.  The option -V prints
18       ident's version number.
19
20       ident works on text files as well as object files and dumps.  For exam‐
21       ple, if the C program in f.c contains
22
23              #include <stdio.h>
24              static char const rcsid[] =
25                "$Id: f.c,v 5.4 1993/11/09 17:40:15 eggert Exp $";
26              int main() { return printf("%s\n", rcsid) == EOF; }
27
28       and f.c is compiled into f.o, then the command
29
30              ident  f.c  f.o
31
32       will output
33
34              f.c:
35                  $Id: f.c,v 5.4 1993/11/09 17:40:15 eggert Exp $
36              f.o:
37                  $Id: f.c,v 5.4 1993/11/09 17:40:15 eggert Exp $
38
39       If a C program defines a string like rcsid above but does not  use  it,
40       lint(1)  may  complain,  and  some  C  compilers will optimize away the
41       string.  The most reliable solution is to  have  the  program  use  the
42       rcsid string, as shown in the example above.
43
44       ident finds all instances of the $keyword: text $ pattern, even if key‐
45       word is not actually an RCS-supported keyword.  This gives you informa‐
46       tion about nonstandard keywords like $XConsortium$.
47

KEYWORDS

49       Here  is the list of keywords currently maintained by co(1).  All times
50       are given in Coordinated Universal Time (UTC, sometimes called GMT)  by
51       default,  but  if  the  files were checked out with co's -zzone option,
52       times are given with a numeric time zone indication appended.
53
54       $Author$
55              The login name of the user who checked in the revision.
56
57       $Date$ The date and time the revision was checked in.
58
59       $Header$
60              A standard header containing the full pathname of the RCS  file,
61              the  revision  number, the date and time, the author, the state,
62              and the locker (if locked).
63
64       $Id$   Same as $Header$, except that the  RCS  filename  is  without  a
65              path.
66
67       $Locker$
68              The login name of the user who locked the revision (empty if not
69              locked).
70
71       $Log$  The log message supplied during checkin.  For ident's  purposes,
72              this is equivalent to $RCSfile$.
73
74       $Name$ The symbolic name used to check out the revision, if any.
75
76       $RCSfile$
77              The name of the RCS file without a path.
78
79       $Revision$
80              The revision number assigned to the revision.
81
82       $Source$
83              The full pathname of the RCS file.
84
85       $State$
86              The  state assigned to the revision with the -s option of rcs(1)
87              or ci(1).
88
89       co(1) represents the following characters in keyword values  by  escape
90       sequences to keep keyword strings well-formed.
91
92              char     escape sequence
93              tab      \t
94              newline  \n
95              space    \040
96              $        \044
97              \        \\
98

IDENTIFICATION

100       Author: Walter F. Tichy.
101       Manual Page Revision: 5.4; Release Date: 1993/11/09.
102       Copyright © 1982, 1988, 1989 Walter F. Tichy.
103       Copyright © 1990, 1992, 1993 Paul Eggert.
104

SEE ALSO

106       ci(1),  co(1),  rcs(1),  rcsdiff(1), rcsintro(1), rcsmerge(1), rlog(1),
107       rcsfile(5)
108       Walter F. Tichy, RCS--A System for Version Control,  Software--Practice
109       & Experience 15, 7 (July 1985), 637-654.
110
111
112
113GNU                               1993/11/09                          IDENT(1)
Impressum