본문 바로가기

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