Which is correct to append the output of ls and who to some file x.

Showing Answers 1 - 7 of 7 Answers

manoj

  • May 4th, 2005
 

try this 
ls>>filename

  Was this answer useful?  Yes

hemant

  • Sep 13th, 2005
 

the answer is:ls<

  Was this answer useful?  Yes

Shruti Jain

  • Sep 14th, 2005
 

ls | who > x

  Was this answer useful?  Yes

Parth

  • Jun 8th, 2006
 

(ls ; who) > x

  Was this answer useful?  Yes

vipull

  • Jul 26th, 2006
 

cat Is>>xcat who>>x

  Was this answer useful?  Yes

Srikanth B Pai

  • Jul 9th, 2007
 

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.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions