#for ihour in  04 
for ihour in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#for ihour in 18 19 20 21 22 23
  do
   echo "Fixing $ihour"
#hrrrmslprecip00US.html
#confighrrrmslprecip16US.txt
hhfile="confighrrrmslprecip${ihour}SC.txt"
#confighrrrmslprecip16SC.txt
#HRRR/f00/US/mslpreci
#hhfile="${hhfile]US.txt"
#fhour="${ihour]"
 echo "$hhfile fhour is f$ihour"
ffhour="f${fhour}"
sedcmd="'s/f00/f${ihour}/g'"
echo SEDCMD=$sedcmd
sed -e"s|f00|f${ihour}|"   < $hhfile > tempx 
sed -e"s|US|SC|"   < tempx >$hhfile  
# mv tempx $hhfile
done
