ident(1)

ident1

Identify rcs keyword strings in files

Usage

ident [-qV] [file ...]

Overview

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:

-q

Quiet mode: suppress warnings if no pattern found.

-V

Display version information and exit.

Exit status

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

Examples

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 $";
int
main(void) {
	printf("%s\n", rcsid);
	return (0);
}

Compile it and run ident:

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

Releases

61 releases since OpenBSD 2.1; the text changed 7 times.

  1. 2.1–3.8
  2. 3.9
  3. 4.0–4.1
  4. 4.2–4.6
  5. 4.7–4.8
  6. 4.9
  7. 5.0–5.3
  8. 5.4–8.0

-V since OpenBSD 3.9; -q since OpenBSD 3.9.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.