bash里,echo对换行符的处理

echo -e "#include <stdio.h>
int main()
{
    printf("hello world\
");
    return 0;
}" > h.c; gcc h.c; ./a.out

 h.c里的内容

#include <stdio.h>
int main()
{
    printf("hello world
");
    return 0;
}

终端输出内容

hello world
原文地址:https://www.cnblogs.com/catmelo/p/3736338.html