Thursday, March 14, 2002

Dave's Unix Tip of the Day

If some of the last set of changes to a file you saved in RCS were good, try something like

rcsdiff -e -r1.56 -r1.57 myfile > changes.edit

vi changes.edit (to remove the changes you want to keep)

echo w >> changes.edit

co -r1.56 myfile

ex myfile < changes.edit

ci -l changes.edit

Et Voila!

No comments: