#!/bin/ksh
#  Execute: params_erro_plotts.ksh 

dir_data=/scratchout/grupos/oceano/rosio.camayo/validation/validate_pesq/d-input/d-mod_vs_obs/all/
file=params_erro_BOIA_SC_20120101_20120315_
endfile=".dat"
houra=00
hourf=72

rm -f $dir_data/params_erro_allhours.dat

while [[ $houra -lt $hourf ]] ; do


cat $dir_data/${file}${houra}${endfile} | tail -1 | sed "s/^/${houra}/" >> $dir_data/params_erro_allhours.dat

(( houra= houra+1 ))

if (( $houra < 10 ));then
houra=0$houra
fi

done

cat $dir_data/${file}71${endfile} | tail -1 | sed "s/^/71/" >> $dir_data/params_erro_allhours.dat
