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 sed command do in unix?
What does the “echo” command do?
Differentiate cat command from more command.
How do I use grep to search for a file?
Which command is used to create a directory?
How do I clear my terminal history?
Using unix command how to display no of records in oracle?
What is the use of cut command in unix?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
Explain ‘library functions’ with respect to unix commands?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
How to display no of records in oracle using unix command?
What is unix command?
What does touch command do in unix?
What is the command to find hidden files in the current directory?