What is the difference between pipe (|) and tee command in unix

Answer Posted / ruth suganya sebastian

pipe is used to execute two or more commands
eg:select ename||'works as '||job from emp;

tee is used to create an empty file,stores the output and
then displays the contents on the screen
eg: grep "^d" filename||tee file

Is This Answer Correct ?    49 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do chgrp command do?

582


What is the first character of the output in ls l command?

625


What is updatedb?

576


What do chown command do?

523


What does the command ' $who | sort –logfile > newfile' do?

757






Which unix command lists files/folders in alphabetical order?

610


What does this command do,"$more readme.txt“?

681


What is grep r?

580


Why is awk called awk?

573


What command is used to check the current users?

584


What is difference between grep and find command in unix?

572


What does this command do? Cat food 1 > kitty

971


What is the significance of the 'tee' command?

591


Is command prompt unix?

570


What is nr in awk command?

591