[GTALUG] bash seq question
Russell Reiter
rreiter91 at gmail.com
Thu Feb 2 18:06:45 EST 2017
It's not often I have to assemble larger numbered documents. I usually use
this little script.
enscript -L1 -F --header-font=Times-Roman12 -b '||$%' -o- < <(for i in
$(seq "$(pdftk "$1" dump_data | grep "Num" | cut -d":" -f2)"); do echo;
done) | ps2pdf - | pdftk "$1" multistamp - output "${1%.pdf}-numbered.pdf"
I tried it on this ..
Linux HECTOR 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
x86_64 GNU/Linux
and got this ..
seq: invalid floating point argument: 162
162 pages with no numbers.
Could this be because the pdf's were generated in M$?
Thanks in advance.
Russell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/talk/attachments/20170202/b2fca95a/attachment.html>
More information about the talk
mailing list