C++ Primer 5th 第19页有关于文件重定向的内容,于是按照讲解实验了一番,记录下来备忘吧。以win平台为例。
cmd与powershell在格式上有很大的不同:
文章中的格式 exe <infile >outfile,这种写法适合cmd;但是PS就需要新的写法了:
get-content infile | exe | out-file outfile
C++ Primer 5th 第19页有关于文件重定向的内容,于是按照讲解实验了一番,记录下来备忘吧。以win平台为例。
cmd与powershell在格式上有很大的不同:
文章中的格式 exe <infile >outfile,这种写法适合cmd;但是PS就需要新的写法了:
get-content infile | exe | out-file outfile