1 .\" $NetBSD: ident.1,v 1.4 1996/10/15 07:00:01 veego Exp $
6 .ds iD \\$3 \\$4 \\$5 \\$6 \\$7
8 .\" Id: ident.1,v 5.4 1993/11/09 17:40:15 eggert Exp
15 ident \- identify RCS keyword strings in files
27 searches for all instances of the pattern
28 .BI $ keyword : "\ text\ " $
29 in the named files or, if no files are named, the standard input.
31 These patterns are normally inserted automatically by the \*r command
33 but can also be inserted manually.
37 the warning given if there are no patterns in a file.
45 works on text files as well as object files and dumps.
46 For example, if the C program in
51 #include \*[Lt]stdio.h\*[Gt]
53 static char const rcsid[] =
55 \&"$\&Id: f.c,v \*(iD $\&";
57 int main() { return printf(\&"%s\en\&", rcsid) == EOF; }
79 If a C program defines a string like
81 above but does not use it,
83 may complain, and some C compilers will optimize away the string.
84 The most reliable solution is to have the program use the
86 string, as shown in the example above.
89 finds all instances of the
90 .BI $ keyword : "\ text\ " $
93 is not actually an \*r-supported keyword.
94 This gives you information about nonstandard keywords like
97 Here is the list of keywords currently maintained by
99 All times are given in Coordinated Universal Time (\*u,
100 sometimes called \&\s-1GMT\s0) by default, but if the files
101 were checked out with
104 option, times are given with a numeric time zone indication appended.
107 The login name of the user who checked in the revision.
110 The date and time the revision was checked in.
113 A standard header containing the full pathname of the \*r file, the
114 revision number, the date and time, the author, the state,
115 and the locker (if locked).
120 except that the \*r filename is without a path.
123 The login name of the user who locked the revision (empty if not locked).
126 The log message supplied during checkin.
129 purposes, this is equivalent to
133 The symbolic name used to check out the revision, if any.
136 The name of the \*r file without a path.
139 The revision number assigned to the revision.
142 The full pathname of the \*r file.
145 The state assigned to the revision with the
153 represents the following characters in keyword values by escape sequences
154 to keep keyword strings well-formed.
160 \f2char escape sequence\fP
169 Author: Walter F. Tichy.
171 Manual Page Revision: \*(Rv; Release Date: \*(Dt.
173 Copyright \(co 1982, 1988, 1989 Walter F. Tichy.
175 Copyright \(co 1990, 1992, 1993 Paul Eggert.
177 ci(1), co(1), rcs(1), rcsdiff(1), rcsintro(1), rcsmerge(1), rlog(1),
181 \*r\*-A System for Version Control,
182 .I "Software\*-Practice \*[Am] Experience"
184 7 (July 1985), 637-654.