I would like to replace the empty space between each and every field with comma delimiter.Could someone let me know how can I do this.I tried the below command but it doesn\
I know it's not exactly what you're asking, but, for replacing a comma with a newline, this works great:
tr , '\n' < file