Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.