#!/bin/csh -f # # A script to edit files and put the timestamp back the way it was. # This is designed to allow error corrections to blosxom entries. if ($#argv != 1) then echo "Exactly one argument required!" exit 1 endif set file = $1 if ( ! -e $file ) then echo "Cannot find $file" exit 2 endif if (! $?EDITOR) then echo "No editor set, using default (vi)" set EDITOR = /bin/vi endif set tsf = timestamp_$$_$file touch -r $file $tsf $EDITOR $file touch -r $tsf $file rm $tsf