【发布时间】:2015-08-27 20:57:11
【问题描述】:
在 ubuntu 中,我会通过以下命令来完成
./a.out < input.txt | cat > ouput.txt
如何在 Windows cmd 中执行此操作?
【问题讨论】:
-
file.exe c:\yourinput.txt > c:\output.txt ??
-
a.exe < input.txt > output.txt(PS:在 Linux 中你可能不需要cat,./a.out < input.txt > output.txt应该可以工作。 -
我认为 Windows 没有
cat。
标签: c windows cmd io-redirection