3 # List all book into that match given bookcode(s). If the bookcode is omitted,
4 # outputs data for all books.
7 # list-book-info.sh 01fftd 02tfc
11 if [ ! -d "$AONDIR" ]; then
12 >&2 echo "Please set the AONDIR environment variable"
16 book_db="$AONDIR/common/sqlite/bookcodes.db"
19 sqlite3 -column -noheader "$book_db" <<EOF
35 if [[ ! $book =~ ^[a-z0-9]+[a-z]$ ]]; then
36 >&2 echo "invalid book code"
40 sqlite3 -column -noheader "$book_db" <<EOF