我想写一些预定义的文本与以下文件:
text="this is line one\n
this is line two\n
this is line three"
echo -e $text > filename
我期待的是这样的:
this is line one
this is line two
this is line three
但我明白了:
this is line one
this is line two
this is line three
我确信在每个\n
之后没有空间,但是额外的空间是如何出来的?