Learn BASH -- Pipelines (from bash manual)

本文深入探讨了管道命令的基本概念、功能及其在Linux命令行中的应用。重点介绍了命令之间的连接方式、标准输入与输出的重定向,以及每个命令在管道执行过程中的独立执行特性。此外,还详细解释了管道命令如何通过管道实现数据的高效传输与处理。

1. Pipe's function:

The output of each command in the pipeline is connected via a pipeto the input of the next command. That is, each command reads the previous command's output. Thisconnection is performed before any redirections specified by thecommand.


2. Note:If ‘|&’ is used, the standard error of command1 is connected tocommand2's standard input through the pipe; it is shorthand for2>&1 |. This implicit redirection of the standard error isperformed after any redirections specified by the command.


3.Each command in a pipeline is executed in its own subshell


4.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值