ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 


 

Company >> Cap Gemini >> Interview Questions >> Unix Commands Interview Questions
 
  H1B Visa Interview Questions (1)   Accounting AllOther Interview Questions (1)   WebMethods Interview Questions (1)
  Oracle Apps Financial Interview Questions (1)   CRM General Interview Questions (1)   SAP ALE IDocs Interview Questions (1)
  SAP Security Interview Questions (1)   Business Warehouse Interview Questions (3)   HR Interview Questions (13)
  FI CO Interview Questions (6)   SD Interview Questions (20)   ABAP Interview Questions (59)
  Basis Interview Questions (5)   Cognos Interview Questions (4)   Business Objects Interview Questions (2)
  Java Related AllOther Interview Questions (1)   Weblogic Interview Questions (1)   DB2 Interview Questions (2)
  CICS Interview Questions (1)   Test Cases Interview Questions (3)   QA Concepts Interview Questions (3)
  Manual Testing Interview Questions (18)   QTP Interview Questions (10)   WinRunner Interview Questions (1)
  Unix AllOther Interview Questions (1)   Unix Commands Interview Questions (2)   Oracle General Interview Questions (2)
  Dot Net Framework Interview Questions (1)   ASP.NET Interview Questions (1)   Visual Basic Interview Questions (1)
  CGI Perl Interview Questions (1)   OOPS Interview Questions (1)
 
Back to Questions Page
Question   What is the difference between pipe (|) and tee command in unix Rank Answer Posted By  
 Interview Question Submitted By :: Jkonakan
I also faced this Question!!   © ALL Interview .com
Answer
pipe is used to direct the output of a set of commands to 
another set of commands meaning output of one will be fed 
as input to the other
tee is used to display the output on the screen
 
2 Jaydeep Das
 
 
Answer
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
 
0 Ruth Suganya Sebastian
[Wipro]
 
 
Answer
seperate arguments
 
0 Guest
[Wipro]
 
 
 
Answer
'|' --> This will take output and send it as the input for 
next command

tee --> tee will generate two outputs
 
2 Manikantan T S
[Wipro]
 
 
Question   what is the difference between pipe(|) and tee command.. Rank Answer Posted By  
 Interview Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
A Pipe would allow you to direct output of one command  to 
the input of another command ie. directs a stream from one 
file to another.

A Tee command does the same job of directing streams 
however it directs the stream to two destinations direction 
one is the direction where the stream would otherwise end 
up if there was no Tee command And the other direction is 
the file that is argument to Tee command.

So, A Tee is used in Pipes to direct streams to an outside  
file without interrupting the regular propagation of stream 
in the pipe.
  eg. 

                  Pipe
  ----------------------------------------
Output of A                           Input of B
  ----------------------------------------


                  Pipe
  ----------------------------------------
Output of A    ========               Input of B
  ----------------||----------------------
                  ||
                  ||
             Input of C


 
2 Mohit Chandila
 
 
Answer
seperate arguments
 
0 Guest
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com