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\
Inside vim, you want to type when in normal (command) mode:
vim
:%s/ /,/g
On the terminal prompt, you can use sed to perform this on a file:
sed
sed -i 's/\ /,/g' input_file
Note: the -i option to sed means "in-place edit", as in that it will modify the input file.
-i