您可以很轻松地通过命令行将结果重定向到文本文件,或者重写自动化来直接记录结果。
You can easily redirect results to a text file from a command line or recast the automation to log results directly.
在标准输出已被重定向至其它源,而您希望在同一命令行上将标准错误也写至同一目的地时,该特性就非常有用。
But this feature is useful when stdout has already been redirected to another source, on the same command line, and you want stderr to go to the same destination. For example.
当cat的输出没有被重定向到一个文件或另一个命令的标准输出时,cat表现出来的行为与多数命令行工具一样,即将其输出发送到控制台。
When the output of cat is not redirected to a file or another command's standard input, cat behaves as most command-line tools and send its output to the console.
应用推荐