Help with shell script to run a converter process

Hi,

I have about 500 binary files. I have a command to convert these files to text. The command usage is:

converter bin-file txt-file

I have to input the name of the binary file and the name of the text file. I'm thinking something like this will work, but not really sure:

for file in *.bin
do
newfile="${file%.*}.txt"
convert "$file" "$newfile"
done

Will this work?

correct syntax you could avoid intermediate variable:

for file in *.bin
do
    converter "$file" "${file%.*}.txt"
done

(convert or converter ? typo...)