OpenBSD manual page server

Manual Page Search Parameters

IDENT(1) General Commands Manual IDENT(1)

identidentify RCS keyword strings in files

ident [-qV] [file ...]

The ident program searches for the pattern $keyword:... $ from the files specified as argument (or standard input if none are given). See the KEYWORD SUBSTITUTION section of rcs(1) for more information.

The following options are supported:

Quiet mode: suppress warnings if no pattern found.
Display version information and exit.

The ident utility exits 0 on success, and >0 if an error occurs.

Given the following source code in file foo.c:

#include <stdio.h>

static char const rcsid[] =
	"$Id: foo.c,v 1.2 2005/11/18 09:34:51 xsa Exp $";

main(void) {
	printf("%s\n", rcsid);
	return (0);

Compile it and run ident:

$ ident foo.c foo.o
     $Id: foo.c,v 1.2 2005/11/18 09:34:51 xsa Exp $
     $Id: foo.c,v 1.2 2005/11/18 09:34:51 xsa Exp $

ci(1), co(1), cvs(1), rcs(1), rcsclean(1), rcsdiff(1), rcsmerge(1), rlog(1)

June 29, 2013 OpenBSD-5.9