Renat Golubchyk <[EMAIL PROTECTED]>:
[snip]
> for file in $( find . -name '*.tga' | sort )
> do
>   output=$(echo $file | sed s/tga$/png/)
>   convert $file $output
> done

Why not use bash pattern matching?

for file in $(find . -name \*.tga | sort)
do
  convert $file ${file%tga}png
done

> Regards,
>   Renat

-- 
Magnus Lie Hetland               "Nothing shocks me. I'm a scientist." 
http://hetland.org                                   -- Indiana Jones

--
[EMAIL PROTECTED] mailing list

Reply via email to