Istvan Gabor said the following on 03/08/2010 12:22 PM:
Hello:
I would like to convert several ps files to pdf using pdftops. What would be the correct command line for batch processing if the ps filenames have white spaces and I have many files in the same directory? (For a single file with no white spaces in the name it would be "pdftops infile.ps outfile.pdf".)
Read the BASH (SH) man page. Look under "for" and "list", as in for name in ...list... do .... done Of course there are many (hundreds) of variations using functions, generators and much else, but the solution is ... a shell script :-) Almost all questions that arise here end up with using the shell, so its worth learning even if you are not into system administration. Shell is about the simplest, most straight forward language you can find under Linux. It is also very powerful. But we've told you that before, Istvan. I really do suggest you take the time to learn the shell. It will profit you immensely. -- Faith: Belief without evidence in what is told by one who speaks without knowledge, of things without parallel. --Ambrose Bierce, The Devil's Dictionary -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org