for r in $(grep list index.html | sed 's,,,' | grep -v '' | grep -v "Repositories list") do test -f .$r && continue hg clone http://hg.suckless.org/$r/ cd $r hg push git+ssh://git@github.com:scklss/$r.git cd .. done