我想只查看gcc编译器输出的顶行,所以我尝试了命令,gcc myfile.c | head -10但我仍然看到所有的输出.我使用Bash shell.谢谢.
gcc myfile.c | head -10
bash
bash ×1