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

link|improve this question

feedback

1 Answer

up vote 8 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).

link|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
feedback

Your Answer

 
or
required, but never shown

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