print.sh 142 B

123456
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. numberOfPages=$(pdfinfo $1 | grep ^Pages | tr -s ' ' | cut -d' ' -f2)
  4. lp "$1" -P ""