In Mathematica, it is possible to reuse the output of the previous command by using %.
Is something similar possible for bash (or some other shell)?
For example,
I'm not sure if the make command sends warnings to stderr but I suspect it does. try this
make
make 2&>1 |grep 'warning'
it will redirect stderr to stdout.
Should also note that you can't grep anything that's not going to stdout.