#!/bin/csh -f

set DIR_LIST = `/bin/ls -1F | grep "/"`

while ($#DIR_LIST != 0)
   echo $DIR_LIST[1]
   cd $DIR_LIST[1]
   foreach CUR_LBL (*.LBL)
      set LBL_ROOT = $CUR_LBL:r
      set TMP_LBL  = $LBL_ROOT.tmp
#      echo $CUR_LBL  $TMP_LBL
#      cat $CUR_LBL | sed s/\"ASCII\ REAL\"/ASCII_REAL/g | sed s/\"ASCII\ INTEGER\"/ASCII_INTEGER/g > $TMP_LBL
      cat $CUR_LBL | sed s/REVISION_ID\ \ \ \ \ \ \ \/PRODUCT_VERSION_ID/g > $TMP_LBL
      /bin/rm $CUR_LBL
      /user/dda/programs/linux/lwp $TMP_LBL $CUR_LBL 78
      /bin/rm $TMP_LBL 
   end
  cd ..
  shift DIR_LIST
end