This displays both threads on the console, but somehow distinguishes one from the other.
I usually donโt know which stderr lines are mixed with normal output. If I redirect it to a file, then I do not know when an error occurred due to the normal output. So, is there a way that every line that came from stderr would have some indicator, for example, for example, a line at the beginning:
c:\>command.exe normal output normal output normal output stderr: error message normal output stderr: error message normal output
This is especially a problem in / make compilers, which output a lot of information and mix these two streams. I know that I can add every line of text with a given line using unix sed , but I don't know how to use it in relation to the main program. If I join two streams, a line will be added to each line. If I redirect stderr to a file, it will not be displayed on console +, it will go out of context from stdout.
rsk82 source share