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 does touch command do in unix?
What will the following command do?
What happens when we execute a unix command?
What does the “echo” command do?
What does grep v grep do?
How to use grep command to list find the records of a file containing 10 different strings?
What does the command '$ls | wc –l > file1' do?
Differentiate cmp command from diff command.
Who wrote grep?
What's a command word?
What is the use of cut command in unix?
How do I use grep to search for a file?
Using unix command how to display no of records in oracle?
What is .sh file?
why metadb requires a seperate slice to create Solaris volume manager