#!/bin/bash cd "$(dirname "$0")" pdftk *.pdf cat output newfile.pdf