#!/bin/csh -f echo -n "Enter the name of a file in '$1' format: " set fnam=$< if ("" == "$fnam") then echo Aborted exit -1 endif if (! -r $fnam) then echo No such file exit -1 endif cp $fnam $2 exit 0