Bash Pipe Handling

后端 未结 3 526
再見小時候
再見小時候 2020-12-13 04:12

Does anyone know how bash handles sending data through pipes?

cat file.txt | tail -20

Does this command print all the contents of file.txt

3条回答
  •  星月不相逢
    2020-12-13 05:14

    Shog9 already referenced the Wikipedia article, but the implementation section has the details you want. The basic implementation is a bounded buffer.

提交回复
热议问题