News for hackers. Stuff that matters.
Re:Results of the Grand C++ Error Explosion Competition by JoshTriplett on Sunday January 26, 2014 @10:01PM (#7128479)
If you don't mind being bash-specific, you can shorten 2>&1 | to just |& .
Re:Results of the Grand C++ Error Explosion Competition by coherentpony on Sunday January 26, 2014 @10:40PM (#7128645)
Good lord. I think you just changed my life.
Re:Results of the Grand C++ Error Explosion Competition by praptak on Monday January 27, 2014 @03:23AM (#7129366)
Similarly &> works for redirecting both stderr and stdout to a file. >& is the alternate, less preferred syntax.