Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #27521

Re: Use of pdftk

From Jack Strangio <jackstrangio@yahoo.com>
Newsgroups comp.os.linux.misc
Subject Re: Use of pdftk
Date 2019-07-02 02:42 +0000
Organization North Star Horizon Builders Club
Message-ID <ptzu64.o5F@yahoo.com> (permalink)
References <qeqms8$oua$1@dont-email.me>

Show all headers | View raw


db <dieterhansbritz@gmail.com> writes:
> I have a large number of pdf files I want to chain together into
> a single file. They come from Windows and the names all have spaces
> in them. 
> 
> This has worked for me with a smaller set, but for this one it's
> so many that I want to do it using a script. I tried something like
> this:

Get your script to disregard spaces (etc) when reading in argument
lines by inserting this line near the top of it

IFS="$(printf '\n\t')"

That will then consider a tab or a newline ONLY as separators. 

Then you can read in a whole list of filenames without the spaces killing
your input arguments.

Regards,

Jack

-- 
"I'm a home-loving girl. And that's where I wish I was."
"At home ..."
"Loving."
               - Laugh-In, 1968

Back to comp.os.linux.misc | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Use of pdftk db <dieterhansbritz@gmail.com> - 2019-06-24 14:31 +0000
  Re: Use of pdftk Joe Makowiec <makowiec@invalid.invalid> - 2019-06-24 15:46 +0000
  Re: Use of pdftk Richard Kettlewell <invalid@invalid.invalid> - 2019-06-24 17:00 +0100
  Re: Use of pdftk Bit Twister <BitTwister@mouse-potato.com> - 2019-06-24 11:36 -0500
  Re: Use of pdftk Andreas Kohlbach <ank@spamfence.net> - 2019-06-24 14:21 -0400
  Re: Use of pdftk Rich <rich@example.invalid> - 2019-06-24 18:38 +0000
    Re: Use of pdftk au76666 <britz@chem.au.dk> - 2019-07-05 08:09 +0000
  Re: Use of pdftk Jack Strangio  <jackstrangio@yahoo.com> - 2019-07-02 02:42 +0000

csiph-web