On Sunday 23 Mar 2003 15:51, Adam Mercer wrote: > Hi > > I've got a huge batch of targa images that I need to convert to png, as > I don't want to convert each image individually I thought about writing > a small script to do this for me. I thought about something along the > lines of > > for file in $( find . -name '*.tga' | sort ) > do stub=$(echo $file | cut -d. -f1) convert $file $stub.png
> convert $file $file.png > done > > but as expected this leaves the .tga extension on the file name, before > the png extension. How can I remove the .tga extension on the file? > Peter -- Gentoo-1.4.3.4 Unstable. KDE: 3.1.1 Qt: 3.1.2 AMD Athlon(tm) XP 1900+ 768MB. Kernel: 2.4.20-xfs. GCC 3.2.2 -- [EMAIL PROTECTED] mailing list