Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you don't mind being bash-specific, you can shorten 2>&1 | to just |& .


Good lord. I think you just changed my life.


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: