From c417a9d4d3793d0df09eac935750b6c716ef411c Mon Sep 17 00:00:00 2001 From: gutmet Date: Mon, 14 Jun 2021 16:26:39 +0200 Subject: [PATCH] script for merging pdfs (and not overwriting existent files...) --- mergePDFs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 mergePDFs diff --git a/mergePDFs b/mergePDFs new file mode 100755 index 0000000..0328e7d --- /dev/null +++ b/mergePDFs @@ -0,0 +1,9 @@ +#!/bin/bash + +set -eu + +timestamp=`stamp -filename` +outfile="mergedPDFs-$timestamp.pdf" + +pdfunite "$@" "$outfile" +echo "$outfile"