sed替换段落内容的\n为字符串\n

cat ca.cert.pem | sed ':a;N;s/\n/\\n/g;ta'

You may also like...

发表评论