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 / manoj

Pipe command.
syntax :$command1|command2
Command1 output will be the input for command2
Eg:command1:echo$s
command2:wc

echo$s|wc
s=manoj is input of command1
Output for command2 is manoj
input of command 2 is manoj
output of pipe command is 5
Output:5

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who wrote grep?

1110


What is the difference between awk and grep?

1333


What is awk command used for?

1327


Write a command to display a file’s contents in various formats?

1246


What do chown command do?

1257


What are awk commands?

1225


What does the command ' $who | sort –logfile > newfile' do?

1324


Which command is used to delete all files in the current directory and all its sub-directories?

1317


What is {} in find command?

1156


What is “chmod” command?

1241


Differentiate cmp command from diff command.

1237


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

1357


What is the nmap command?

1239


What does touch command do in unix?

1477


What is updatedb?

1091