#
echo -n "enter the name of the file you wish to erase: "
set filename = $<             # get a line of input.
if (! (-w "$filename")) then  # check I have access.
 echo you do not have permission to erase that file.
else
 rm $filename
 echo file erased
endif
