Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
JoshTriplett
on Jan 27, 2014
|
parent
|
context
|
favorite
| on:
Results of the Grand C++ Error Explosion Competiti...
If you don't mind being bash-specific, you can shorten 2>&1 | to just |& .
coherentpony
on Jan 27, 2014
|
next
[–]
Good lord. I think you just changed my life.
praptak
on Jan 27, 2014
|
prev
[–]
Similarly &> works for redirecting both stderr and stdout to a file. >& is the alternate, less preferred syntax.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: