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 in unix

Answer Posted / worsame abid

A Pipe is two or more commands seperated by pipe chat "|".
That tells the shell to arrange for the output of the
proceeding command to be passed as input to the following
example.

$ls |wc -l

this will mean that output of ls command will serve as
input for wc command as result we will get total number of
files in current directory.



Tee is normally used to split the output of a program so
that it can be seen on the display and also be saved in a
file ,The tee command reads standard input, then writes its
content to standard output and simultaneously copies it
into the specified file(s) or variables.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens when we execute a unix command?

1105


Name the unix command to find how many days the server has been up.

1134


What is the pipe command?

1139


How to display no of records in oracle using unix command?

1135


What are the dos commands?

1214


What is awk used for?

1090


What is the use of tee command?

1100


How do I clear my terminal history?

1108


Are you in or at the office?

1091


Is grep faster than awk?

1002


What is the nmap command?

1148


What does the md command do?

1089


How do you grep recursively?

1070


What is the first character of the output in ls l command?

1179


Why is it called a shebang?

1119