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

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

791


What does the metacharacter mean?

807


why metadb requires a seperate slice to create Solaris volume manager

2781


How do I use nslookup?

763


Explain how to use grep command to list find the records of a file containing 10 different strings?

803


What is the use of the command 'ls -x chapter[1-5]' ?

894


How do you grep recursively?

774


What are bash commands?

796


How can we use grep command in unix?

841


How do you repeat a command in terminal?

840


What is awk command used for?

784


How can you see the command line history?

825


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

971


Explain command to display different lines that are found when compare two files?

886


What is grep short for?

746