#!/bin/csh -f

set files = ( EPW4_A592_v55_A.b8.ugrid EPW4_A592_v55_F.b8.ugrid EPW4_A592_v55_msmm_B.lb8.ugrid EPW4_A592_v55_msmm_E.b8.ugrid EPW4_A592_v55_A.lb8.ugrid EPW4_A592_v55_F.lb8.ugrid EPW4_A592_v55_msmm_C.b8.mapbc EPW4_A592_v55_msmm_E.lb8.mapbc EPW4_A592_v55_B.b8.ugrid EPW4_A592_v55.fun3d.mapbc EPW4_A592_v55_msmm_C.b8.ugrid EPW4_A592_v55_msmm_E.lb8.ugrid EPW4_A592_v55_B.lb8.ugrid EPW4_A592_v55_msmm_A.b8.mapbc EPW4_A592_v55_msmm_C.lb8.mapbc EPW4_A592_v55_msmm_F.b8.mapbc EPW4_A592_v55_C.b8.ugrid EPW4_A592_v55_msmm_A.b8.ugrid EPW4_A592_v55_msmm_C.lb8.ugrid EPW4_A592_v55_msmm_F.b8.ugrid EPW4_A592_v55_C.lb8.ugrid EPW4_A592_v55_msmm_A.lb8.mapbc EPW4_A592_v55_msmm_D.b8.mapbc EPW4_A592_v55_msmm_F.lb8.mapbc EPW4_A592_v55_D.b8.ugrid EPW4_A592_v55_msmm_A.lb8.ugrid EPW4_A592_v55_msmm_D.b8.ugrid EPW4_A592_v55_msmm_F.lb8.ugrid EPW4_A592_v55_D.lb8.ugrid EPW4_A592_v55_msmm_B.b8.mapbc EPW4_A592_v55_msmm_D.lb8.mapbc EPW4_A592_v55.usm3d.mapbc EPW4_A592_v55_E.b8.ugrid EPW4_A592_v55_msmm_B.b8.ugrid EPW4_A592_v55_msmm_D.lb8.ugrid EPW4_A592_v55_E.lb8.ugrid EPW4_A592_v55_msmm_B.lb8.mapbc EPW4_A592_v55_msmm_E.b8.mapbc )

foreach file ( $files )
   set new = `echo $file | sed -e "s%592%589%g"`
   mv $file $new
end

