#!/bin/csh

foreach i (npp.*.hdf.gz)
   echo $i
   set j=$i:r
   echo $j
   set m=$j:r
   set k=$m:e

   echo $k

   mv $i cbpm.$k.hdf.gz
end
