TIL: Use process substitution to tag stdout and stderr

I learned something new about shells today! You can use >(...) to write output to another process. You are almost certainly familiar with command substitution: ls -l $(which git) runs which git first and substitutes that as an argument to ls -l (you can also use backticks but they can’t be nested like $(..) ). You might know about <(...) which lets you turn the output of a command into a pseudo…