From 7419b9fc45ba291d5d10a9f5bea3fa5d33dfedc0 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 16 Sep 2020 15:22:27 +0300 Subject: move bin to .local/bin --- .local/bin/spliff | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .local/bin/spliff (limited to '.local/bin/spliff') diff --git a/.local/bin/spliff b/.local/bin/spliff new file mode 100755 index 0000000..3767bac --- /dev/null +++ b/.local/bin/spliff @@ -0,0 +1,6 @@ +#!/usr/bin/env zsh + +PDF=$1 +OUTPUT="${PDF:r}_spliff.pdf" +N=`qpdf --show-npages $1` +qpdf --collate --empty --pages $1 1-$(((N+1)/2)) $1 $(((N+1)/2 + 1))-$N -- $OUTPUT -- cgit v1.2.3-70-g09d2