Tee (command)

tee
Developer(s)AT&T Bell Laboratories, Mike Parker, Richard Stallman, David MacKenzie, Microware, Jim Hall, JP Software, Microsoft
Initial releaseJune 1974 (1974-06)
Written inC
Operating systemUnix, Unix-like, Plan 9, Inferno, OS-9, FreeDOS, Windows, ReactOS, IBM i
PlatformCross-platform
TypeCommand
LicenseFreeDOS: GPL-2.0-or-later
ReactOS: GPLv2
Plan 9: MIT License

tee is shell command that copies data from standard input to one or more files in addition to standard output; duplicating the input to each output.[1] The name derives from the tee pipe fitting even though the tee command duplicates the input into each output instead of dividing the input into portions for each output.[2] The command is often used with pipes and filters. Similar behaving commands are provided by many shells although syntax varies.

The command is provided in Unix and Unix-like systems, OS-9,[3] DOS (e.g. 4DOS, FreeDOS), Windows (e.g. 4NT, PowerShell, UnxUtils[4]), ReactOS[5] and IBM i.[6]

The Linux version was written by Mike Parker, Richard Stallman, and David MacKenzie.[7]

The FreeDOS version was developed by Jim Hall and is licensed under the GPL.[8]

Additionally the sponge[9] command offers similar capabilities.

  1. ^ "Man Page for tee (posix Section 1)". IEEE Std 1003.1, 2003 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6. Retrieved 1 December 2013.
  2. ^ "In Unix, what do some obscurely named commands stand for?". Archived from the original on 27 November 2005. Retrieved 3 February 2012.
  3. ^ Paul S. Dayan (1992). The OS-9 Guru - 1 : The Facts. Galactic Industrial Limited. ISBN 0-9519228-0-7.
  4. ^ "Native Win32 ports of some GNU utilities". unxutils.sourceforge.net.
  5. ^ "reactos/reactos". GitHub. 3 January 2022.
  6. ^ IBM. "IBM System i Version 7.2 Programming Qshell" (PDF). IBM. Retrieved 5 September 2020.
  7. ^ "tee: read from standard input and write to standard output and files". www.mankier.com.
  8. ^ "ibiblio.org FreeDOS Package -- tee (Unix-like)". www.ibiblio.org.
  9. ^ "sponge(1): soak up stdin/write to file - Linux man page". linux.die.net.

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search