pipeline in linux script

Posted on 2012-09-13
Medium Priority
Last Modified: 2012-09-13

just  have a question.

what does pipe line also known as  | do in linux script

I only know it passes to otherside? not quite sure..

thank you for your help
Question by:bt1942
1 Comment
LVL 68

Accepted Solution

woolmilkporc earned 2000 total points
ID: 38394136
The pipe reads the standard output ("stdout") created by the program/script on its left side and passes it unchanged to the program/script on it's right side. This "right" program must be set up to read the data from standard input ("stdin").


echo "Hello World!" |cat

"echo" writes the given string to stdout. The pipe reads this output and passes it to stdin of cat. "cat", when invoked without parameter, just reads stdin and writes the output to stdout, which is by default your terminal.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question