redirect stdout and stderr to a single file with prefixes
Posted
by João Portela
on Stack Overflow
See other posts from Stack Overflow
or by João Portela
Published on 2010-03-12T12:07:49Z
Indexed on
2010/03/12
12:27 UTC
Read the original article
Hit count: 317
I am writing a bash script and need to redirect the stdout and stderr output of a command i run to a single file, prefixing each line with stderr or stdout, accordingly.
is there a simple way to do this?
© Stack Overflow or respective owner