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 difference between cmp and diff commands?

714


What does this command do? Cat food 1 > kitty

971


How do I use grep to search for a file?

576


What does the md command do?

560


What does touch command do in unix?

717






Why is it called a shebang?

565


Write a command that will display files in the current directory, in a colored, long format.

671


How do I search a whole word in vim?

681


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

587


What is ‘ps’ command for?

608


What is grep in bash?

579


What is command statement?

535


What is the behavioural difference between cmp and diff commands?

664


How do you repeat a command in terminal?

585


Which unix command to make a new directory?

583