RCCS(1)
π RCCS(1) β like, the manual page for rccs π
okay bestie, pull up a chair, we're reading a Programmers tools manpage together and honestly? it's a good one. it's rccs, no cap. β¨
β¨ NAME β¨
rccs β apply RCS commands to sets of files π«Ά
πΈ SYNOPSIS πΈ
rccs command [ options ] [ filename and/or directory ... ]
that's it. that's the whole vibe. command, options, files. slay. π
π DESCRIPTION π
so rccs is a perl script that tries to emulate the Berkeley SCCS program for RCS. if your fingers already know how to type commands to SCCS, just do the exact same thing to rccs. muscle memory stays winning, fr fr. π₯
a subset of the SCCS commands are implemented β specifically the ones that I use. some new commands have been added too. and it's easy to add more commands: go peek at the Example routine at the bottom of rccs to see how. iykyk. π
the big thing to know: this interface does not require a list of files/directories for most commands β the implied list is *,v and/or RCS/*,v. but β οΈ destructive commands, like clean -f, unedit, unget, do not have an implied list. in other words:
rccs diffsis the same asrccs diffs RCSrccs uneditis not the same asrccs unedit RCS
π read that twice. the destructive ones don't guess for you. they will simply do the thing.
π COMMANDS π
optionsβ note that RCS options are typically passed through to RCS. the options that made sense to SCCS commands are translated to RCS options. β¨ciβ alias fordelta. checks in files.clean [-e] [-f] [-d|y'message'] [files]β with no arguments at all, this command removes all files that are read only and have an associated RCS file. with the-eargument,cleanremoves files that have been checked out writable but have not been modified. the-d|y|moption may be combined with-eto check in the set of files that have been modified. with the-foption,cleanremoves all working files, including files that have been modified since the check out.
π¨ Be careful. that's not me being dramatic, that's literally in the manpage. -f does not care about your feelings.
coβ alias forget. checks out files.create [-y|d'message'] [-g] filesβ initial check in of files to the RCS system. the files are then checked out readonly unless the-goption is present. the-yor-doptions may be used to set the descriptive text message. differs from SCCS in that the original files are not preserved. πdeleditβ alias fordeltafollowed by aget -e.delgetβ alias fordeltafollowed by aget.delta [-y|d'message'] [-q] [files]β check in a delta of the file.-qis changed to RCS'-sand means to be quiet about what is happening.-y'message'or-d'message'or-m'message'all get sent through to RCS as the check in message. no other arguments are translated.diffs [-C|c] [-r<rev>] [-sdiff] [files]β shows changes between the working files and the RCS file. note that the files do not need to be checked out, only writable.-Cor-cmeans do a context diff.-sdiffmeans do a side by side diff. the sdiff option will figure out your screen width if it knows how β see the source to make this work on your system. π₯οΈβ¨editβ alias forget -e.enterβ alias forcreate -g.fixβ useful if you just checked in the file and then realized you forgot something. π thefixcommand will remove the top delta from the history and leave you with an editable working file with the top delta as the contents. it's giving undo button energy.get [-e] [-p] [-k] [-s] [files]β get, or check out, the file. without any options,getjust gets the latest revision of the RCS file in the working file. with-e, check out the file writable. with-p, send the file to stdout. with-k, supress expansion of key words. with-s, be quiet about what is happening. π€«helpβ get a brief help screen of information. π«Άhistory [files]β print the RCS history (my format) of the specified files.info [files]β print the list of files being edited.printβ alias for a loop that prints the history of each file followed by the contents of the file.prsβ alias forhistory.prtβ alias forhistory.uneditβ alias forclean -f.ungetβ alias forclean -f.
π GLOBAL OPTIONS π
-debugβ turn on debugging. used when debuggingrccsitself. π-verboseβ be more verbose about what is happening. π£οΈ
β EXAMPLES β
to start off, add a bunch of files to RCS:
rccs create -y'my program name' myprog.c myprog.h
now let's edit them all:
rccs get -e
if we didn't change anything, the following gives us a clean directory:
rccs clean -e
if we changed myprog.h, the following gives us a clean directory after checking in myprog.h:
rccs clean -e -d'some message'
if we want to see what we changed:
rccs diffs
main character workflow, honestly. π πΈ
π¦ SEE ALSO π¦
RCS commands, SCCS commands, sdiff(1), perl(1).
π§ TODO π§
it would be nice to implement a -i option that prompted before each action, especially the destructive ones. π (yes, the destructive ones. the ones that eat your files. those ones.)
so yeah, that's the whole thing bestie. this page is signed off by lm@sgi.com, dated Nov, 1995 β genuinely iconic, 10/10, no notes. periodt. ππ
π¦ where this page comes from
- debian bookworm: lmbench 3.0-a9+debian.1-6
- debian trixie: lmbench 3.0-a9+debian.1-9
- ubuntu jammy: lmbench 3.0-a9+debian.1-6
- ubuntu noble: lmbench 3.0-a9+debian.1-6build3
- ubuntu questing: lmbench 3.0-a9+debian.1-9
- ubuntu resolute: lmbench 3.0-a9+debian.1-10
- ubuntu stonking: lmbench 3.0-a9+debian.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms