First we need a getrefs command to query spires, citebase, xxx, etc.
#!/bin/bash
lynx -source http://www.slac.stanford.edu/spires/find/hep/wwwrefsbibtex?rawcmd=find+eprint+$1 | grep eprint | cut -d\" -f2 
Then we take a file of input and iterate the query
#!/bin/bash
#usa ficheros "entrada" y "excluir", produce "salida"
echo > salidatmp
for i in `cat entrada`; do
  echo $i >> salidatmp
  if grep -q $i  excluir; then
    echo excluido $i 
  else 
    echo procesando $i 
    getrefs $i >> salidatmp 
  fi 
done
#este sort vale solo de 1991 a 2009
sort -u -t/ +1.0 -1.1 +1r salidatmp > salida
rm salidatmp 

and finally we pre-format it for HTML #!/bin/bash #toma salida y crea salida.html echo \<body\> > salida.html echo "<base href=\"http://xxx.unizar.es/\">" >> salida.html for i in `cat salida`; do echo $i lynx -source http://xxx.unizar.es/abs/$i -source | grep H2 echo "<hr>" >> salida.html echo "<a href=\"http://arxiv.org/abs/"$i "\"><b>"$i"</b></a>",>>salida.html lynx -source http://xxx.unizar.es/abs/$i -source | grep "H2\|au:" | sed 's/H2/b/g' >> salida.html done echo \<p\> >> salida.html echo "</body>" >> salida.html