Saturday, September 8, 2012

cvs lock delete


Find /cvs | grep ‘/#cvs.’ > /tmp/cvs_lock
cat /tmp/cvs_lock | while read line; do  if [ -d $line ]; then echo "deleteing $line DIR"; rm -rf $line; fi; if [ -f $line ]; then echo "deleting $line FILE"; rm -f $line; fi; done | tee -a /tmp/del_log_cvs_lock

No comments:

Post a Comment