How to replace all entries of comma in text file by space or other character

Hi ,

How to replace all entries of comma in text file by space or other character.

cat temp.txt
A,B,C,D

I want this file to be like
A B C D

Please help!!!

sed 's/,/ /g' temp.txt >newtemp.txt

Thanks a lot era!!

tr ',' ' ' <infile>outfile

awk '{gsub(","," ",$0);print}' tempfile