Does there exist a command where one can do something like:
I don’t have much experience of using tee, so I hope this is not very basic.
I would like to use the same pipe for different applications, like in:
Is there a way to pipe the output of a command and direct it to the stdout
as well?
I’d like to send stdout from one process to the stdin of another process, but also to the console. Sending stdout to stdout+stderr, for instance.
I know that to capture a pipeline’s contents at an intermediate stage of processing, we use tee as ls /bin /usr/bin | sort | uniq | tee abc.txt | grep out
, but what if i don’t want to redirect the contents after uniq to abc.txt but to screen(through stdout, ofcourse) so that as an end result , i’ll have on screen, the intermediate contents after uniq as well as the contents after grep.