Clean up working files (UNIX)
rcsclean [options] [file...]
The rcsclean utility does not follow the standard utility syntax conventions. Options and their arguments may not be separated by white space, and options may not be combined in single command line arguments (i.e. multiple options must be separated by spaces in the command line).
The rcsclean command removes working files that were checked out and never modified. For each file given, rcsclean compares the working file and a revision in the corresponding RCS file. If it finds no difference, it removes the working file unless the working file is writable and the revision is locked. If the revision is locked, it unlocks the revision.
If no file is given, all working files in the current directory are cleaned. Any other options are passed along to rcsdiff for the comparison.
The rcsclean command is useful for clean targets in Makefiles. See also rcsdiff, which prints out the differences, and ci, which normally asks whether to check in a file if it wasn't changed.
Remove all working files in the current directory that weren't changed since their checkout:
rcsclean
Remove all working files ending in .c or .h that weren't changed since their checkout:
rcsclean *.c *.h
GNU
You can't give RCS filenames as arguments.
Any diagnostics generated by rcsdiff when comparing files are discarded.
If the latest revision is already unlocked, and you have a lock on an earlier revision, the earlier revision is unlocked.
ci, co, ident, rcs, rcsdiff, rcsmerge, rlog
Don Bolinger & Tan Bronson, Applying RCS & SCCS, O'Reilly and Associates, 1995.