Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the function of grep command in unix?

1191


How can you see the command line history?

1150


What is updatedb?

1060


Which command is used to create a directory?

1179


What is the size of time_t?

1225


What does grep v do?

1065


What is in grep command?

1181


What does touch command do in unix?

1441


What do chgrp command do?

1233


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

1259


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1323


What does the command '$ls | wc –l > file1' do?

1256


How do I use nslookup?

1106


What are awk commands?

1174


What is the comma to display different lines that are found when compare two files?

1170