Name

co

Synopsis

co [options]files

Retrieve (check out) a previously checked-in revision and place it in the corresponding working file (or print to standard output if -p is specified). If you intend to edit the working file and check it in again, specify -l to lock the file. co accepts the standard options -q, -V, -V n, -T, -x, and -z.

Options

-d date

Retrieve latest revision whose check-in timestamp is on or before date.

-f[ R ]

Force the working file to be overwritten.

-I[ R ]

Interactive mode; prompt user even when standard input is not a terminal.

-jR2:R3[,...]

This works like rcsmerge. R2 and R3 specify two revisions whose changes are merged into a third file: either the corresponding working file or a third revision (any R specified by other co options). Multiple comma-separated pairs may be provided; the output of the first join becomes the input of the next. See the co manpage for more details.

-k c

Expand keyword symbols according to flag c. c can be:

b

Like -ko, but uses binary I/O. This is most useful on non-Unix systems.

kv

Expand symbols to keyword and value (the default). Insert the locker’s name only during a ci -l or co -l.

kvl

Like kv, but always insert the locker’s name.

k

Expand symbols to keywords only (no values). This is useful for ignoring trivial differences during file comparison.

o

Expand symbols to keyword and value present in previous revision. This is useful for binary files that don’t allow substring changes.

v

Expand symbols to values ...

Get Unix in a Nutshell, 4th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.