new script
Prithu Goswami prithugoswami524@gmail.com
Mon, 28 Dec 2020 00:28:58 +0530
1 files changed,
25 insertions(+),
0 deletions(-)
jump to
A
bin/misc/insert_blanks.sh
@@ -0,0 +1,25 @@
+#!/bin/bash + +if [ $# -ne 2 ] +then + exit $E_BADARGS +else + + COMMSTR='' + SEQ="$1" + j="1-" + l="" + for i in $SEQ; + do + COMMSTR="$COMMSTR A$j$i B1 " + j=$(expr $i + 1) + j="$j-" + l=$i + done + l=$(expr $l + 1) + COMMSTR="$COMMSTR A$l-end" + + $(pdftk A=$2 B=blank_lttr.pdf cat $COMMSTR output 'mod_'$2) + # $(rm pageblanche.pdf && rm 'mod_'$1) + +fi