what is the difference between pipe(|) and tee command..
Answer Posted / mohit chandila
A Pipe would allow you to direct output of one command to
the input of another command ie. directs a stream from one
file to another.
A Tee command does the same job of directing streams
however it directs the stream to two destinations direction
one is the direction where the stream would otherwise end
up if there was no Tee command And the other direction is
the file that is argument to Tee command.
So, A Tee is used in Pipes to direct streams to an outside
file without interrupting the regular propagation of stream
in the pipe.
eg.
Pipe
----------------------------------------
Output of A Input of B
----------------------------------------
Pipe
----------------------------------------
Output of A ======== Input of B
----------------||----------------------
||
||
Input of C
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is grep short for?
Which command is used to create a directory?
What is merge command in unix?
What is the function of grep command in unix?
How do I run a bash script?
What is grep r?
What is the pipe command?
What is pipe command in unix?
What is the difference between cat and more command?
What does grep v do?
What happens when we execute a unix command?
What is the use of tee command?
How do I use nslookup?
What is s and g in sed command?
What command is used to switching between users in unix?