: - Rand edit a list of files
: loop
if x = $1x exit
<<re +$1
if ! -w $1.bak goto skip
cp $1 $1.bak
mv $1.bak $1
: skip
shift
goto loop
