【发布时间】:2020-12-12 15:25:27
【问题描述】:
我将下面的字符串存储在我的数据库列中:
"Your ack was rejected due to the following reason: \n -- Invalid code received. \n \n Please correct the error and resend."
\n 是我要在其中拆分行的换行符。
预期输出:
"Your ack was rejected due to the following reason:
-- Invalid code received.
Please correct the error and resend it."
请推荐 unix/sed 命令
【问题讨论】: