Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Filter » ?

Aussi appelé : filter (shell)

Definition 8.7 University Computer Science — Year 1 · Chapitre 8 — The Shell

A filter is a program that reads standard input, transforms it, and writes standard output, so that it can stand anywhere in a pipeline: sort sorts lines, uniq -c collapses runs of equal adjacent lines and counts them, wc -l counts lines, head and tail keep the first or last lines, cut keeps fields, tr translates characters, paste joins lines.

The pipeline of : six programs running at once, each reading what the one before writes. uniq -c counts only adjacent equal lines, hence the sort before it.
The pipeline of Output 8.4: six programs running at once, each reading what the one before writes. uniq -c counts only adjacent equal lines, hence the sort before it.
Lire dans le chapitre →