以下是我尝试在运行时b使用换行符替换字符的尝试sedbash
$> echo 'abc' | sed 's/b/\n/'
anc
不,那不是它
$> echo 'abc' | sed 's/b/\\n/'
a\nc
不,那也不是.我想要的输出是
a
c
救命!