species-of-things
clone your own copy | download snapshot

Snapshots | iceberg

No images in this repository’s iceberg at this time

Inside this repository

countpages.sh
text/x-sh

Download raw (241 bytes)

#! /bin/bash

bookfolder=${1%/}
total=0

for pdffile in $bookfolder/pdfs/*-downsampled.pdf; do
  pages=$(pdfinfo "${pdffile}" | awk '/Pages/ {print $2}')
  echo "${pdffile} - ${pages}"
  let total+=pages
done

echo "Total in book - ${total}"