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 does #!/ Bin sh do?

599


How do I search for text in vi?

595


Can you explain a little bit about command substitution?

620


How can you see the command line history?

590


Which command is used to create a directory?

577






What is the search command in unix?

611


What is command substitution?

627


How do I delete files from command prompt?

555


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

599


What is the difference between cat command and more command?

607


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

601


How do I search for a file in unix command?

557


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

805


What is the function of grep command in unix?

600


What is the size of time_t?

661