#! / bin / bashfor png in * .png do gif = "$ {png% .png} .gif" if test -r $ {gif} Test "hi" # Just Junk, do nothing else printf "Convert% - 22S] TO [% 22S "" [$ {PNG} "" $ {gif}] "Convert $ {PNG} $ {gif} Printf" / t / t [ok] / n "Fidone If the conversion is made, each Sub-conversion will have the following tips:
Convert [filename.png] to [filename.gif] [OK] running commands directly, will put the current directory
./png2gif.sh