for i in *.tga do convert "$i" "${i%%tga}png" echo "$i" ">> ${i%%tga}png" rm $i done