Skip to content · ⁨コンテンツへスキップ⁩

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 produces the lines; sort receives them and puts them in order. No file in between.

日本語

核心概念:パイプ

  • これがシェルを強力にする理由です。パイプ | はあるコマンドの出力を次のコマンドにそのまま送ります:
cat fruits.txt | sort
  • cat が行を生成し、sort が受け取って並べ替えます。その間にファイルはありません。

パイプはあるコマンドの出力を次のコマンドにそのまま送る: cat | sort | uniq

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP