On Fri, 18 Aug 2006, Saverio Iacovelli wrote:

> > bmake print-PLIST | tee PLIST.new
> 
> What is difference between "|" and "tee" commands

The vertical bar also called the pipe is a special shell character which 
basically means the standard output of the previous command becomes the 
standard input of the next command.

The tee(1) utility reads the standard input and outputs to a file (named 
on the command line) and also again to standard output.

tee(1) is very useful.

I use it so I can see what I am doing while saving the results at the same 
time.

Reply via email to