August 2010
2 posts
4 tags
Redirect the output of a command to a file when...
Rather than > or », use tee.
Redirecting the output of commands run with sudo requires a different approach. For instance consider sudo ls > /root/somefile will not work since it is the shell that tries to write to that file. You can use ls | sudo tee -a /root/somefile to append, or ls | sudo tee /root/somefile to overwrite contents.
From...
1 tag
Subversion branching best practice
Most new code is checked into the trunk. In general, our developers try to never “break the tree”. Anyone who checks in code which causes the trunk builds to fail will be the recipient of heaping helpings of trash talk and teasing until he gets it fixed. The trunk should always build, and as much as possible, the resulting build should always work.
Most new code is checked into the...