Bashの展開、環境変数、履歴と入出力12 / 12

teeの実行結果

$ printf 'red\nblue\n' | tee copied.txt
red
blue

表示された2行はcopied.txtにも保存される。

学習パスへ
参考資料