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
What is the functionality of a top command?
What is in grep command?
Can you explain a little bit about command substitution?
What are grep patterns?
What is the use of egrep command in unix?
What is .sh file?
Which command is used to restrict incoming messages?
What are the commands in UNIX to list the files in a Directory?
Can you enlist some commonly used network commands?
What are the dos commands?
What is awk command used for?
how to sort the content of the file based on numeric values
What is the size of time_t?
How do I use grep to find a file?
What is the significance of the 'tee' command?