Skip to content

Instantly share code, notes, and snippets.

@awreece
Created December 10, 2012 23:51
Show Gist options
  • Select an option

  • Save awreece/4254460 to your computer and use it in GitHub Desktop.

Select an option

Save awreece/4254460 to your computer and use it in GitHub Desktop.
#!/bin/bash
outdir="."
if [ $# -gt 0 ]
then
outdir=$1
fi
for conf in asplos hcpca isca sigmetrics
do
for year in `seq 2000 2012`
do
echo "getting $conf$year"
curl -s -m 5 "http://www.informatik.uni-trier.de/~ley/db/conf/$conf/$conf$year.html" | grep '<br><b>' | sed 's/<br><b>\(.*\)/\1/' > $outdir/$conf$year.titles
while [ ${PIPESTATUS[0]} -ne 0 ]
do
echo "try again for $conf$year"
curl -s -m 5 "http://www.informatik.uni-trier.de/~ley/db/conf/$conf/$conf$year.html" | grep '<br><b>' | sed 's/<br><b>\(.*\)/\1/' > $outdir/$conf$year.titles
done
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment