Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Jack Strangio Newsgroups: comp.os.linux.misc Subject: Re: Use of pdftk Date: Tue, 2 Jul 2019 02:42:40 -0000 (UTC) Organization: North Star Horizon Builders Club Lines: 28 Message-ID: References: Injection-Date: Tue, 2 Jul 2019 02:42:40 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="516f1c75a8b23ffde1bc24717266701f"; logging-data="31885"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/m4HMrYR/v5J3bh2Jz3h0TY+/ytM0NTHI=" Cancel-Lock: sha1:jutm8tr6QthJ7j4wFIhEMTeozfY= X-Newsreader: TASS News Reader 3.7.2 jvs [linux] Xref: csiph.com comp.os.linux.misc:27521 db 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