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
Who wrote grep?
What is the difference between awk and grep?
What is awk command used for?
Write a command to display a file’s contents in various formats?
What do chown command do?
What are awk commands?
What does the command ' $who | sort –logfile > newfile' do?
Which command is used to delete all files in the current directory and all its sub-directories?
What is {} in find command?
What is “chmod” command?
Differentiate cmp command from diff command.
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is the nmap command?
What does touch command do in unix?
What is updatedb?