linux 管道

linux的管道:前一个命令的输出当做后一个命令的输入

 管道的形式:命令1 |命令2|命令3|....

eg:echo"redhat"|passwd --stdin hive

      cat /etc/passwd|sort

      cut -d: -f1 /etc/passwd|sort

       

原文地址:https://www.cnblogs.com/dfyz/p/4641514.html