Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Batch Convert *.tif to *.jpg

On Tue, 28 Oct 2003, Broun, Bevan wrote:

you might save a step thus avoiding invoking sed

for i in *.tif; do
	convert $i ${i%tif}jpg

> see the convert utility from the ImageMagick set of programs.
> if its installed you could probably just do
>     for f in *.tif;do
> 	g=`echo $f | sed -e 's/.tif$/.jpg/'`
> 	convert  $f $g
>     done
> BB

kind regards

Epsilon-6!                         Ph:+612 8807-4780   Fax: +612 8807-4498
E-Solutions for BSD and Linux               http://www.paladincorp.com.au/
This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.