Browse Source

Added a script for batch editing

Samuel W. Flint 8 years ago
parent
commit
41f97c7bc5
1 changed files with 13 additions and 0 deletions
  1. 13 0
      batch-edit-library

+ 13 - 0
batch-edit-library

@@ -0,0 +1,13 @@
+#!/bin/zsh -f
+
+FIELD=$1
+shift
+VALUE=$1
+
+while :
+do
+    echo -n "Book ID (q quits): "
+    read ID
+    [[ $ID == "q" ]] && exit 0
+    library edit $ID $FIELD $VALUE
+done