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 is the significance of the 'tee' command?

1253


Why is awk called awk?

1136


What is the size of time_t?

1271


How do I delete files from command prompt?

1282


What does grep v grep do?

1125


Which command can you use to find the currently running process in unix server?

1165


What is {} in find command?

1156


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1285


What are grep patterns?

1148


How do I find previous commands in unix?

1248


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

1325


Explain the steps that a shell follows while processing a command.

1287


What is the use of cut command in unix?

1427


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1450


How do I run a bash script?

1241