Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Standard input and output, redirection, pipe » ?

Aussi appelé : standard input/output · redirection · pipe

Definition 14.7 High School Computer Science · Chapitre 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.
Lire dans le chapitre →