#!/usr/local/bin/bash # # combine all 372 materials into a single pdf # function do_set { final=$1 shift gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$final $* chmod 644 $final ls -l $final } do_set 372.s16-all-materials.pdf $(cat <