identify files (UNIX)
Display ident's version number:
ident -VIdentify files:
ident [-q] [file]...
The ident utility searches for all occurrences of the pattern $keyword:...$ in each named file. These patterns are normally inserted automatically by the RCS command co, but can also be inserted manually.
The ident utility works on text files as well as object files and dumps. For example, if the C program in f.c contains
char rcsid[] = "$Id: f.c,v 5.0 1997/08/22 09:09:36 eggert Exp $";
and f.c is compiled into f.o, then the command:
ident f.c f.o
will write the following output:
f.c: $Id: f.c,v 5.0 1997/08/22 09:09:36 eggert Exp $ f.o: $Id: f.c,v 5.0 1997/08/22 09:09:36 eggert Exp $
GNU