#!/bin/csh -fb # (The "-fb" might need to be changed to "-f" on some systems) # 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