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\" -f2Then 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
>> salida.html echo "" >> salida.html