#!/bin/csh -x

 set COD = "FMPL210226"
 set DIR = "/extra2/adminchuva/chuvaproject/soschuva/experimental/level_2/eq_fieldmill_pluvio/esp_pac/st_tui/2017/01"
 cd ${DIR}	
 foreach ARQ ( `ls *.dat` )	

           	set ARQ = `basename ${ARQ}`

           	set DATA = `echo ${ARQ} |cut -c 11-24`


            	mv ${DIR}/${ARQ} ${DIR}/${COD}${DATA}.dat

 end


exit 0

