#!/bin/csh -f echo "Checking out all files in current directory:" foreach f (*) if ( -f RCS/$f,v ) then if ( -w $f ) then echo "$f IS WRITABLE. Clean up first!" exit 1 else echo " $f" sr52 co $f endif endif end echo "DONE."