Rename Multiple Files on Command Line

the command below rename *.body to *.bin

rename 's/.body$/.bin/' *.body