How to replace space with comma using sed?

The Solution to How to replace space with comma using sed? is


If you are talking about sed, this works:

sed -e "s/ /,/g" < a.txt

In vim, use same regex to replace:

s/ /,/g

~ Answered on 2012-11-24 06:07:42


Most Viewed Questions: