#!/bin/csh -f
set blocksize = 20

if ($#argv == 1) then
   set blocksize = $1
endif

set i = 0
while (-r file$i)
   set f = file$i
   echo "Copying $f from disk to tape"
   dd if=$f of=$TAPE bs=${blocksize}b
   @ i++
end

@ i--
echo $i files copied.
exit 0
