Linux基础05-管道的使用

命令1 | 命令2

  命令1的输出 作为 命令2的输入>>指令二输出到屏幕

例:

sailfish     4  0.0  0.0  17048  3712 tty1     S    09:22   0:00 -bash
sailfish  5014  0.0  0.0  16784  3424 pts/0    Ss   10:03   0:00 -bash
sailfish  5035  0.0  0.0  14804  1204 pts/0    S    10:18   0:00 grep --color=auto bash

  

原文地址:https://www.cnblogs.com/sailifsh-lyh/p/10807658.html