2016-05-01 08:14:47 +0300, Pierre Gaston:
[...]
> convert "$i" "${i%pcx}png";
>
> for extra safety you can use:
>
> for i in ./*.pcx
>
> this can avoid trouble with filenames starting with eg -
For imagemagick convert, that also helps for filenames that
contain ":"s.
For instance:
convert gif:a.pcx gif:a.png
would create a gif file called a.png instead of a png file
called gif:a.png
convert ./gif:a.pcx ./gif:a.png
would be OK.
--
Stephane