diff options
Diffstat (limited to '.local/bin/remove-first-page')
-rwxr-xr-x | .local/bin/remove-first-page | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.local/bin/remove-first-page b/.local/bin/remove-first-page new file mode 100755 index 0000000..6e46706 --- /dev/null +++ b/.local/bin/remove-first-page @@ -0,0 +1,14 @@ +#!/usr/bin/bash + +remove_first_page_pdf() { + pdftk "$1" cat 2-end output "$1".new.pdf +} + +case "$1" in + *.pdf) + remove_first_page_pdf "$1" + ;; + *) + echo "Not a pdf file." + ;; +esac |