In bash, by default, only stdout gets redirected to a file when you use the ">" operator.
To redirect stderr to a file, use the "2>" operator.
To redirect both, use "&>"
Reference:http://www.cyberciti.biz/faq/redirecting-stderr-to-stdout/
My online tech scrapbook where I keep my notes in case I need to look them up later
Sunday, April 7, 2013
Git Undo Staging a File for Commit
If a file has already been staged for commit i.e. via the "git add" command, use the following command to unstage the file:
git reset HEAD <filename>
git reset HEAD <filename>
Tuesday, April 2, 2013
Iterating Through All Loggers & Appenders in LogBack
Most people probably won't need it, but when you do, this will come in handy.
http://stackoverflow.com/questions/7064402/is-it-possible-to-find-logback-log-files-programmatically
http://stackoverflow.com/questions/7064402/is-it-possible-to-find-logback-log-files-programmatically
Monday, April 1, 2013
The "spi" Package in Java Projects
It's quite common to find a package called "spi" in Java projects.
Here's an explanation of what it means and what it's for:
Here's an explanation of what it means and what it's for:
Subscribe to:
Posts (Atom)