#!/bin/sh -e case $# in 2) ;; *) echo "usage: cvsmv old new" exit 1 ;; esac mv $1 $2 cvs remove $1 cvs add $2 cvs commit -m"$1 moved to $2" $1 $2