#!/bin/bash set -eu timestamp=`stamp -filename` outfile="mergedPDFs-$timestamp.pdf" pdfunite "$@" "$outfile" echo "$outfile"