GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  IBM  >  Technical
Go To First  |  Previous Question  |  Next Question 
 Technical  |  Question 19 of 98    Print  
Which is correct to append the output of ls and who to some file x.

  
Total Answers and Comments: 6 Last Update: July 09, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 04, 2005 12:30:22   #1  
manoj        

RE: Which is correct to append the output of ls and who to some file x.
try this
ls>>filename

 
Is this answer useful? Yes | No
September 13, 2005 09:12:08   #2  
hemant        

RE: Which is correct to append the output of ls and wh...
the answer is:ls<
 
Is this answer useful? Yes | No
September 14, 2005 12:48:23   #3  
Shruti Jain        

RE: Which is correct to append the output of ls and wh...

ls | who > x


 
Is this answer useful? Yes | No
June 08, 2006 09:28:28   #4  
Parth        

RE: Which is correct to append the output of ls and wh...
(ls ; who) > x
 
Is this answer useful? Yes | No
July 26, 2006 14:54:40   #5  
vipull        

RE: Which is correct to append the output of ls and wh...
cat Is>>xcat who>>x
 
Is this answer useful? Yes | No
July 09, 2007 13:15:46   #6  
Srikanth B Pai        

RE: Which is correct to append the output of ls and wh...
It' s simple

(ls;who) >> x

Comments:
*** (ls;who) prints both the outputs in stdout in the same sequence as commanded.
*** >> is the "redirection + append" operator hence the o/p from stdout is put into a file (appended) named x.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape