How do I replace : characters with newline?

后端 未结 4 1136
野的像风
野的像风 2020-12-22 08:05

I looked at a very similar question but was unable to resolve the issue Replace comma with newline in sed

I am trying to convert : characters in a strin

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-22 08:27

    Perhaps Perl is an option?

    echo -e 'this:is:a:test' | perl -p -e 's/:/\n/g'
    

提交回复
热议问题