I want to know about pipes concept in UNIX. Can someone give a elaborate explanation here in this discussion.
I want to know about pipes concept in UNIX. Can someone give a elaborate explanation here in this discussion.
The concept is easiest of the concepts to learn. In the "software pipeline", different processes are connected through pipes in which output of one process is directly fed as the input to the next process and so on.
For example,
"who" will disply the users logged in the system. grep "sp" will search for "sp" in this list of users and wc will act on the output of this grep and print the number of line, words and charactes in the output of grep command.Code:who | grep "sp" | wc
Hope this was clear.
Cheers,
Kalayama
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
piping..
It is an operator used to compile m0re than one command.
first command output will be input to next command.
ls -l | grep"^d"
will lists out only subdirectories....
i think this is enough..
prasad.gandra
Yes I understood the concept clearly. This is a great detailed explanation with example given by you friends.Thanks all.
In SImple terms..
Output of one command goes as input to the other..