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
Which command can you use to find the currently running process in unix server?
What is the comma to display different lines that are found when compare two files?
Which command is used to find whether the system is 32 bit or 64 bit?
why metadb requires a seperate slice to create Solaris volume manager
How do you grep recursively?
What does this command do? Cat food 1 > kitty
What is grep and how do you use it?
What are the differences among a system call, a library function, and a unix command?
Which unix command lists files/folders in alphabetical order?
What is .sh file?
Why is it called grep?
How many unix commands are there?
Explain ‘library functions’ with respect to unix commands?
How can you see the command line history?
What is grep r?