Skip to content

Instantly share code, notes, and snippets.

@BacLuc
Created July 1, 2018 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BacLuc/b286c24f09e63eb9decd078a6daceb41 to your computer and use it in GitHub Desktop.
Save BacLuc/b286c24f09e63eb9decd078a6daceb41 to your computer and use it in GitHub Desktop.
merge pdfs of single info for scout camp with common infos
#!/bin/bash
DIR="Einzelne"
DIR_MERGED="Einzelne-merged"
for filename in $(ls $DIR); do
FROM=$DIR/$filename
TO=$DIR_MERGED/$filename
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$TO $FROM lagerinfo_notfallblatt.pdf
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment