Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何编译剪贴板的内容,我尝试通过管道传输内容 pbpaste | gcc,但它没有工作它给出了错误i686-apple-darwin11-llvm-gcc-4.2: no input files我听说我可以使用临时文件命令mktemp,但我无法让它工作。
pbpaste | gcc
mktemp
使用-xc -将允许您处理stdin:
-xc -
stdin
gcc -xc -
你可以在这里看到一个活生生的例子。