Supposing I have a document formatted like this:
word1 word2 word3
word4 word5 word6
word7 word8
How do I use sed
to replace the first occurence of space with a comma followed by a space so that the document will look like:
word1, word2 word3
word4, word5 word6
word7, word8
Thank you!