2010. március 8. 21:11 napon David Bolt <bcrafhfr@davjam.org> írta: [snip]
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 file in *.ps; do pstopdf "${file}" done
IIRC, the "outfile" is optional. You can use it explicitly with:
pstopdf "${file}" "${file//.ps/.pdf}" ## requires a POSIX shell,
That would replace any and all occurrences of ".ps" in a file name with ".pdf" . That may be okay if there is only one occurrence but, to make sure that only the extender is replaced, this would be a better choice:
pstopdf "${file}" "${file%.ps}.pdf"
Thanks, I did know about the for loop but I did not know that I can use quote signs to protect white spaces. Thanks again, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org