using tee to output intermediate results to stdout instead of files
61
votes
7
answers
47989
views
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.**
Asked by Aman
(1181 rep)
Jan 12, 2015, 05:41 PM
Last activity: Oct 11, 2024, 09:55 AM
Last activity: Oct 11, 2024, 09:55 AM