Read this example from GNU Coreutils, tee invocation. Using process substitution lets more than one process read the standard output of the originating process. 0 The standard input was successfully copied to all output files. The command returns the following exit values ( exit status): -a Appends the output to each file, rather than overwriting it.A list of files, each of which receives the output. Īdditionally the sponge command offers similar capabilities. The tee command has also been ported to the IBM i operating system. The FreeDOS version was developed by Jim Hall and is licensed under the GPL. The command is available as a separate package for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities. The Linux tee command was written by Mike Parker, Richard Stallman, and David MacKenzie. The command is available for Unix and Unix-like operating systems, Microware OS-9, DOS (e.g. The syntax differs depending on the command's implementation. It simultaneously copies the data into the specified file(s) or variables. The tee command reads standard input, then writes its content to standard output. The command can be used to capture intermediate output before the data is altered by another command or program. The tee command is normally used to split the output of a program so that it can be both displayed and saved in a file. The name tee comes from this scheme - it looks like the capital letter T Example usage of tee: The output of ls -l is redirected to tee which copies them to the file file.txt and to the pager less.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |