I have a series of commands running through a pipeline like this:
cmd1 | cmd2 | cmd3 | cmd4
How can I print the intermediate result of
cmd3? I know I can use the
tee command to print the result to a file. But is it possible to just print it to the console? This is for debugging purpose as my actual commands are very complex.