全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Standard input and output, redirection, pipe?

又称: standard input/output · redirection · pipe

Definition 14.7 High School Computer Science · 第 14 章 — Operating Systems and the Command Line

Each program starts with a standard input, where it reads, and a standard output, where it writes; at a terminal they are the keyboard and the screen. A redirection connects them to a file instead: > f writes the output into f, emptying it first, >> f adds at the end of f, and < f reads the input from f. A pipe, a | b, connects the standard output of a to the standard input of b.

A pipeline: each red arrow is a pipe from one program’s standard output to the next one’s standard input. The six programs run at the same time, each working on the lines as they arrive.
A pipeline: each red arrow is a pipe from one program’s standard output to the next one’s standard input. The six programs run at the same time, each working on the lines as they arrive.
在原文中阅读 →