How can I replace a newline (" \n
") with a space ("
(如何将换行符(“ \n
”)替换为空格(“) ") using the
sed
command?
(“)使用sed
命令?)
I unsuccessfully tried:
(我尝试失败:)
sed 's#
# #g' file
sed 's#^$# #g' file
How do I fix it?
(我如何解决它?)
ask by hhh translate from so