#!/bin/csh
set keyword="3.3.1"
set replace="3.3.2" 
set filelist=`grep -l $keyword *.xml`
#
foreach filename ($filelist)
   echo $filename
   sed "s%$keyword%$replace%" <$filename >$filename.$$
   mv $filename $filename.old
   mv $filename.$$ $filename
end
