summaryrefslogtreecommitdiff
path: root/dl.rc
diff options
context:
space:
mode:
authorkaa <kaa@laptosh.my.domain>2024-07-03 08:41:58 -0700
committerkaa <kaa@laptosh.my.domain>2024-07-03 08:41:58 -0700
commit315e747a4c067752dfc69d3d2d6dc23f0c30d8c0 (patch)
tree691355b90ee7e104e58d6ba3f6615bcc9d114057 /dl.rc
Public release.
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
+ }
+}