文件重定向操作符向现有文件附加内容。
只使用一个管道>。值得一看使用命令重定向操作符。
Reads the output from one command and writes it to the input of another command. Also known as a pipe.
您还可以在任何时候使用 >|(一个小于号加上一个竖线)重定向操作符强制进行覆盖。
You can also force an overwrite at any time using the >| (a greater-than symbol followed by a vertical bar) redirection operator.
您了解了如何把数据重定向到stdin或stdout,如何使用管道,以及如何在UNIX中使用操作符;这些都有助于您编写出更强大的脚本,更好地捕捉错误,使逻辑更简洁清晰。
Knowing how to redirect data as stdin or stdout, how to use the pipe, and how to use operators in UNIX helps you write more powerful scripts with better error trapping and cleaner logic.
您了解了如何把数据重定向到stdin或stdout,如何使用管道,以及如何在UNIX中使用操作符;这些都有助于您编写出更强大的脚本,更好地捕捉错误,使逻辑更简洁清晰。
Knowing how to redirect data as stdin or stdout, how to use the pipe, and how to use operators in UNIX helps you write more powerful scripts with better error trapping and cleaner logic.
应用推荐