I'm a web sysop and support engineer. My skills are mainly in back-end: Java, Linux, Python, PostgreSQL, Git, and GitLab. Currently I'm learning front-end skills: JavaScript, and Ruby.
Openssl prints diagnostic info to stderr and certificate info to stdout. If you want them both in the same filter stream, &> is very handy. Or if you want them all in the same single log file
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I would've done
call-foo > out-and-error.txt 2> out-and-error.txt
; I've never heard of2>&1
or&>
. Very cool! Thanks for that!What would be a practical application of print stdout and stderr to the same file?
@fennecdjay
@thorstenhirsch
@sinewalker
Openssl prints diagnostic info to stderr and certificate info to stdout. If you want them both in the same filter stream,
&>
is very handy. Or if you want them all in the same single log file