#!/usr/local/plan9/bin/rc base = 'https://www.googleapis.com/books/v1/volumes?q=' for (i in `{cat list}) { if (test -f $i) { } if not { curl $base$"i > $"i } }