Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know using command > file will write the stdout of command to file, but is there a similar method to append to file?

share|improve this question
up vote 9 down vote accepted

command > file will clobber the file and replace all data with stdout.

command >> file will append stdout to the file. (meaning the value of stdout is tacked to the end of the file).

share|improve this answer
    
I've edited Q and A to remove some <> for clarity. If you disagree, please revert my edit. – RedGrittyBrick Jun 27 '11 at 17:00
    
No, by all means. I couldn't edit the question, so I just made my answer match! – Babu Jun 27 '11 at 17:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .