[ILUG] (Stupid :-( ) filename manipulation question

Smelly Pooh plop at redbrick.dcu.ie
Thu Mar 16 16:44:05 GMT 2000


In reply to John Allen's flatulent wordings, 
> John Mc Donald wrote:
> 
> > This is a stupid question but I'll ask it anyway. I have a couple of
> > hundred
> > bmp files that I want to convert to Sun Raster format. I figure the best
> > thing
> 
> Try
>  for i in *.bmp; do convert $i `echo $i | sed 's/.bmp/.jpg/g'`; done

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




More information about the ILUG mailing list