pipeline in linux script

Posted on 2012-09-13
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

    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

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. Once you open the link you will see …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now