Skip to content

Pipes — joining commands

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.

A pipe sends one command's output straight into the next: cat | sort | uniq

Log in or create account

IGCSE & A-Level