summaryrefslogtreecommitdiff
path: root/dl.rc
diff options
context:
space:
mode:
Diffstat (limited to 'dl.rc')
-rwxr-xr-xdl.rc10
1 files changed, 10 insertions, 0 deletions
diff --git a/dl.rc b/dl.rc
new file mode 100755
index 0000000..035334b
--- /dev/null
+++ b/dl.rc
@@ -0,0 +1,10 @@
+#!/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
+ }
+}