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

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

674


What is merge command in unix?

940


Explain command to view process running?

609


Which command is used to restrict incoming messages?

586


What do chgrp command do?

585






What are the general commands in using unix os for a beginner?

575


What is .sh file?

614


Which command is used to kill the last background job?

769


How do you grep a case insensitive?

536


What is the command to view process running?

569


What is the use of find command in unix?

575


What does #!/ Bin sh do?

582


What is the pipe command?

572


What does the “echo” command do?

622


What is unix command line?

602