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