#!/bin/csh -f

set biblist = `cat biblist`

set filelist = ( MISC SEP GEOTLE SEGBKS EAEG SEGCON ASEGC GEOPHYSICS )

foreach i ( $biblist )

   set found = 0 

   foreach j ( $filelist )

      set file = /homes/sep/database/bib/"$j".bib

      fgrep $i $file  >&/dev/null

      if( $status == 0 && $found == 0 ) then
   	lookbibtex $file $i
	set found = 1 
      endif

   end

end

