What is the difference between pipe (|) and tee command in unix
Answer Posted / worsame abid
A Pipe is two or more commands seperated by pipe chat "|".
That tells the shell to arrange for the output of the
proceeding command to be passed as input to the following
example.
$ls |wc -l
this will mean that output of ls command will serve as
input for wc command as result we will get total number of
files in current directory.
Tee is normally used to split the output of a program so
that it can be seen on the display and also be saved in a
file ,The tee command reads standard input, then writes its
content to standard output and simultaneously copies it
into the specified file(s) or variables.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Which command is used to copy files?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
Give the command for finding the current date.
What does sed command do in unix?
What do chgrp command do?
Who wrote grep?
Is ‘du’ a command? If so, what is its use?
What are the unix commands?
What do chmod command do?
How do I use grep to search for a file?
What is the pipe command?
How do I run a whois command?
What is the command to view process running?
What is the use of tee command?