דלג לתוכן

Pipes — joining commands

English

The big idea: pipes

  • This is what makes the shell powerful. A pipe | sends one command's output straight into the next command:
cat fruits.txt | sort
  • cat produces the lines; sort receives them and puts them in order. No file in between.

cat fruits.txt | sort | uniq: each command's output flows into the next

היכנס או צור חשבון

IGCSE, A-Level & AP