How to replace space with comma using sed?

前端 未结 8 703
-上瘾入骨i
-上瘾入骨i 2020-12-30 22:52

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\

8条回答
  •  说谎
    说谎 (楼主)
    2020-12-30 23:12

    Try the following command and it should work out for you.

    sed "s/\s/,/g" orignalFive.csv > editedFinal.csv
    

提交回复
热议问题