#!/bin/csh
foreach f (*-2*)

if (-e $f:s/-2//) then
#	echo $f and $f:s/-2// match
else
	echo $f exits but $f:s/-2// does not
endif
end

