3 # List all bookcodes that match given series.
6 # list-bookcodes-by-series.sh lw gs
8 if [ ! -d "$AONDIR" ]; then
9 >&2 echo "Please set the AONDIR environment variable"
13 book_db="$AONDIR/common/sqlite/bookcodes.db"
17 if [[ ! $series =~ ^[a-z]+$ ]]; then
18 >&2 echo "invalid series"
22 sqlite3 -noheader "$book_db" <<EOF
25 where series = '$series'