Do someone knows a way to send the stdout of a command both to another command and display it in the shell screen? Note: without using files.
An example (in this case I use wc -l to make it simple )
~> echo "test" | wc -l 1
but I need to have
I have tried the tee command, expecting it would do it, but it returns the same thing
~> echo "test" | tee | wc -l 1
Any ideas? Thanks