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\
If you are talking about sed, this works:
sed
sed -e "s/ /,/g" < a.txt
In vim, use same regex to replace:
vim
s/ /,/g