Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Standard input and output, redirection, pipe?

Também chamado de: standard input/output · redirection · pipe

Definition 14.7 High School Computer Science · Capítulo 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.
Ler no capítulo →