[Gllug] redirecting stdout to multiple files

Ben Fitzgerald ben_m_f at yahoo.co.uk
Fri Dec 15 10:51:40 UTC 2006


Hi,

scripting in bash. Probably I will kick myself when someone tells me the
answer :-)

I can redirect multiple file descriptors to write out to a single fd,
e.g.


2>/dev/null 1>&2

Is there any way to direct stdout to multiple files just using bash i/o
redirection? similar to

echo hi | tee /tmp/log.txt

but just using i/o redirection with a single cmd.

thanks very much,

ben.

-- 
Registered Linux user number 339435
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list