echo "" > datareferences.bib
for a in `cat ../InputData/PAGES2k_Arctic_all.csv | awk -F"," '{print $9}'|sed -e s/\"//g`
do
  citation=`curl -LH "Accept: text/bibliography; style=bibtex" http://dx.doi.org/$a`
  echo $citation | sed -e "s/\([a-z]*\)\(_\)\([0-9]\)/\1:etal\3/" | sed -e "s/[0-9],/&\n/"  >> datareferences.bib
done

