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

How do I clear my terminal history?

588


What is .sh file?

624


Which unix command lists files/folders in alphabetical order?

621


What does grep v grep do?

556


How do I use nslookup?

577






What is the general format of unix command syntax?

696


How to find $ai_serual resolved path by using unix

1029


why metadb requires a seperate slice to create Solaris volume manager

2557


What is the use of find command in unix?

588


Which command is used to kill the last background job?

784


What command will change your prompt to myprompt?

707


What is the use of the command 'ls -x chapter[1-5]' ?

664


How do I search for text in vi?

590


Explain command to view process running?

618


What is {} in find command?

584