#!/bin/csh -f # Loop, calling diffdel for all files in the current folder, comparing # them to copies in the specified target folder. if ($#argv == 0) then echo "Usage: $0:t target_folder" exit 1 endif if (! -e $1:q) then beep "Error: $1:q does not exist" exit 1 endif if (! -d $1:q) then beep "Error: $1:q is not a directory" exit 1 endif foreach filename (*) diffdel $filename:q $1:q end