[NTLUG:Discuss] Output to Multiple Files

Steve Baker sjbaker1 at airmail.net
Thu Apr 7 09:15:54 CDT 2005


David Wilson wrote:
> I am looking for a little help in finding a tool that
> will let me send the output of an script into to
> simultaneous file locations.

Try 'tee'

   eg:

     cat myfile | tee one_output | grep "Hello World"

---------------------------- Steve Baker -------------------------
HomeEmail: <sjbaker1 at airmail.net>    WorkEmail: <sjbaker at link.com>
HomePage : http://www.sjbaker.org
Projects : http://plib.sf.net    http://tuxaqfh.sf.net
            http://tuxkart.sf.net http://prettypoly.sf.net
-----BEGIN GEEK CODE BLOCK-----
GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M-
V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++
-----END GEEK CODE BLOCK-----




More information about the Discuss mailing list