The tee utility shall copy standard input to standard output, making a copy in zero or more files. The tee utility shall not buffer output. Provide a default value for the internationalization variables that are unset or null. (See XBD Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.) If set to a non-empty string value, override the values of all the other internationalization variables. Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error. [XSI) ] ![[Option Start]]( Determine the location of message catalogs for the processing of LC MESSAGES. ![[Option End]]( Default, except that if the -i option was specified, SIGINT shall be ignored. If any file operands are specified, the standard input shall be copied to each named file. If a write to any successfully opened file operand fails, writes to other successfully opened file operands and standard output shall continue, but the exit status shall be non-zero. Otherwise, the default actions specified in Utility Description Defaults apply. The file operand is technically optional, but tee is no more useful than cat when none is specified. The buffering requirement means that tee is not allowed to use ISO C standard fully buffered or line-buffered writes. It does not mean that tee has to do 1-byte reads followed by 1-byte writes. Historical implementations ignore write errors. This is explicitly not permitted by this volume of POSIX.1-2017. Some historical implementations use O APPEND when providing append mode; others use the lseek () function to seek to the end-of-file after opening the file without O APPEND. This volume of POSIX.1-2017 requires functionality equivalent to using O APPEND; see File Read, Write, and Creation .
Excerpt from a page describing this subject · 7,278 chars · not written by Vinony
在計算機科學中,tee是一個常見的指令,它能夠將某個指令的標準輸出,導向、存入某個檔案中。許多不同的命令行界面(Shell)都提供這個功能,如 Unix shell、Windows PowerShell。 tee的功能通常是用管道,讓它不但能在螢幕輸出,而且也能夠將它儲存在檔案中。當一個資料在被另一個指令或程式改變之前的中間輸出,也能夠用tee來捕捉它。tee命令能夠讀取標準輸入,之後將它的內容寫入到標準輸出,同時將它的副本寫入特定的檔案或變數中。
Abstract from DBpedia / Wikipedia · CC BY-SA
via Wikidata · CC0
via Wikidata sitelinks · CC0
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).