Scripts and command-line tools for managing e-book libraries