#! /bin/sh

exec <tx2.cname

while read line ; do
  if egrep ,"${line}"\$ tx.code_abbr >/dev/null ; then
    egrep ,"${line}"\$ tx.code_abbr | cut -d, -f1 ;
  else
    echo blah $line ;
  fi
done
