Istvan Gabor wrote:
Hello:
I would like to convert several ps files to pdf using pdftops.
Impossible. pdftops does not do that. Pick one or the other: find ./ -name '*.pdf' -maxdepth 1 -exec pdftops '{}' \; or find ./ -name '*.ps' -maxdepth 1 -exec ps2pdf '{}' \; Remove the maxdepth and it will recurse through all subdirectories as well as the current dir. Since you are telling find itself to run the converter util, you don't have to do anything special about the file names. find handles them safely internally, and so do both converter utils, so you're done, as long as you're ok with output files that are the same as the input files with the extension changed. Both utils will do that automatically if you simply omit any destination filename, which is what makes nice short & sweet commands like above possible. However, the single-quotes are important everywhere they appear here, fir different reasons. The single-quotes around "*.foo" are really to prevent the shell from expanding the globbing pattern right there in the command before even handing the result to "find". Preventing that expansion does happen to also prevent any spaces from appearing in the argument, but the point was really to prevent the expansion from creating a huge file list all in the command line, which would exceed the max argument list size for large numbers of files, but since find will interpret the globbing pattern itsef internally, this way works for any number of files from 0 to infinity. The single-quotes around "{}" are also to prevent the shell from interpreting "{...}" the way it normally would, which has nothing to do with spaces or with globbing expansion. (groups commands into a sort of a subroutine) -- bkw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org