Skip to content

Instantly share code, notes, and snippets.

@gapato
Last active February 5, 2020 09:45
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 gapato/98538844b98ec97fa4310c1905db1a22 to your computer and use it in GitHub Desktop.
Save gapato/98538844b98ec97fa4310c1905db1a22 to your computer and use it in GitHub Desktop.
pdfjoin
#!/bin/zsh
OUT=${1:r}.joined.${1:e}
cmd="qpdf --empty --pages"
for i in $*; do;
cmd="$cmd '$i'"
done
cmd="$cmd -- '$OUT'"
echo $cmd
eval ${cmd}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment