#!/bin/csh

foreach f ( `ls *BHZ.R.SAC` ) 
set a = `echo $f | awk -F. '{print $7}'`
if ( $a !=  "TA" ) then
  echo $f
endif
end
