How to use sed to add newline character?# Unix - 噫吁兮,危乎高哉
q*h
1 楼
Hi, there:
I'm stuck with a sed question. Could you help me out?
Here is the content of the text file: test.c
line1
line2
text3asdasfasfasftext4
I want to change it to the following format:
line1
line2
text3asdasf
asfasftext4
I try this sed command but it doesn't work:
sed s/\ test
Thanks in advance! Any suggestion is appreciated.
I'm stuck with a sed question. Could you help me out?
Here is the content of the text file: test.c
line1
line2
text3asdasfasfasftext4
I want to change it to the following format:
line1
line2
text3asdasf
asfasftext4
I try this sed command but it doesn't work:
sed s/\ test
Thanks in advance! Any suggestion is appreciated.