Hello, On Mon, 08 Mar 2010, David Bolt wrote:
On Monday 08 March 2010 20:01:20 David Haller wrote:
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:
Darn. Too used to sane filenames.
pstopdf "${file}" "${file%.ps}.pdf"
Alternatively: pstopdf "${file}" "${file//%.ps/.pdf}" Thanks, -dnh -- Make sure that they know you know that they know you know. -- Mike Andrews on getting license keys by mail (from a certain Corp.) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org