Comment Comment by time4tea Useless use of cat error/awardBut also | isnt a redirection, it takes stdout and pipes it to another program.So, if you want stderr to go to stdout, so you can pipe it, you need to do it in order.bob 2>&1 | progYou usually dont want to do this though. parent time4tea 8 months ago
But also | isnt a redirection, it takes stdout and pipes it to another program.
So, if you want stderr to go to stdout, so you can pipe it, you need to do it in order.
bob 2>&1 | prog
You usually dont want to do this though.