Todd Walton wrote:
> 
> 5) Does 'tee' have a use?

./configure --prefix=$HOME 2>&1 | tee L.configure
make 2>&1 | tee L.make


You get to watch the configure and make process, and you get a copy of
it to peruse through later to check for things that configure might have
missed.

It works the same as
./configure --prefix=$HOME >L.configure 2>&1 & tail -f L.configure
except tee(1) will end when the ./configure script ends, and you get to
see it in real time, not as often as tail(1) feels like checking the
file. This is more noticeable when you are working on an NFS filesystem
as opposed to local disk.

You can also use tee(1) with yor shell's procss redirection to send
output to multiple programs at once.

% tee >(grep -c root) >(grep -c disk) < /etc/group | grep -c jaqque
1
1
9

-john


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to