Skip to content

Instantly share code, notes, and snippets.

@brossetti
brossetti / print_pdf_preview.sh
Created March 22, 2017 15:47
Prints a one-page double-sided preview of all PDFs in a specified directory
#!/bin/bash
# This script prints a one-page double-sided preview of all pdfs in a
# specified directory. It takes two arguments: 1) the name of the
# printer and 2) the directory path. This script does not specify a
# color mode or print quality.
#
# ./print_pdf_preview.sh <printer_name> <dir_path>
for f in $2*.pdf