LinuxCommandLibrary

rcsclean

Remove unchanged RCS working files

TLDR

Remove unchanged working files

$ rcsclean
copy
Remove unchanged working files in a directory
$ rcsclean [path/to/directory]
copy
Remove unchanged working files and unlock them
$ rcsclean -u
copy
Preview which files would be removed (dry run)
$ rcsclean -n
copy
Remove a specific unchanged file
$ rcsclean [filename]
copy

SYNOPSIS

rcsclean [options] [file...]

DESCRIPTION

rcsclean removes working files that have not been modified since checkout. It compares each working file against its corresponding RCS revision and deletes unchanged files, cleaning up the working directory.
This utility is useful for removing files that were checked out for reading but never modified, reducing clutter in the working directory. With -u, it also unlocks any locked revisions that the caller owns if the working file is unchanged.
By default, rcsclean operates on all RCS-controlled files in the current directory. Specify filenames to operate on specific files only.

PARAMETERS

-n

Dry run; show what would be done without doing it
-q
Quiet mode; suppress diagnostics
-u [rev]
Unlock the revision if locked by the caller
-r rev
Compare against specified revision instead of default
-T
Preserve modification time of RCS file
-V
Print version number

CAVEATS

Only removes files that are completely unchanged from their checked-out revision. Any modification, including whitespace changes, prevents deletion.
The -u option only unlocks revisions locked by the current user. It cannot unlock files locked by other users.
Use -n (dry run) first to preview which files will be removed, especially when running on an entire directory.

SEE ALSO

rcs(1), ci(1), co(1), rcsdiff(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community