Quantcast
Viewing all articles
Browse latest Browse all 36135

Using tee in a pipe

I've used `tee` in the past to write to a file and print the output in the terminal. I was wondering if there is an equivalent to print to terminal and forward to the next pipe.

E.g.
Code:

echo "test" | tee | mail me@host.local
So this example would print "test" and send an email with "test" as the body.

Viewing all articles
Browse latest Browse all 36135

Trending Articles