isbnner
1 #!/bin/bash 2 3 # This program is part of 4 # Paul's Preponderating Prepresser v1.1 5 # (CC) 2016 Rev. Paul T. Fusco-Gessick, SHS JD 6 # <<paul@resurgencepress.net>> 7 8 # I.F.E.T. -- I.V.V.S. 9 10 learnIt () { 11 echo -n "ISBN to add: " 12 read isbn 13 echo -n "ID to add it to: " 14 read theid 15 } 16 17 doIt () { 18 calibredb set_metadata --field identifiers\:isbn\:$isbn $theid 19 } 20 21 learnIt 22 doIt 23 24 echo -n "AGAIN???!??! " 25 read go 26 if [ $go != "Y" -a $go != "y" ] 27 then exit 0; 28 else 29 learnIt 30 doIt 31 fi 32