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 (dall'inglese tee, pezzo a T in idraulica) è un comando dei sistemi operativi Unix e Unix-like, e più in generale dei sistemi POSIX, che legge dati dallo standard input e li visualizza sullo standard output, memorizzandoli nel contempo nei file specificati. È un tipo di filtro. Una caratteristica di tee è quella di non fare uso di buffer di linea nell'effettuare la scrittura sullo standard output e sui file, per cui i dati giunti sullo standard input sono resi subito disponibili nei file e sullo standard output senza ritardi. Ciò risulta particolarmente utile per la creazione di file di log. Per le sue caratteristiche, tee è tipicamente usato solo come componente di una pipeline software, al fine ad esempio di salvare in un file una copia dei dati intermedi o finali, o in congiunzione a una o più named pipe per attivare più elaborazioni degli stessi dati.
Abstract from DBpedia / Wikipedia · CC BY-SA
via Wikidata · CC0
via Wikidata sitelinks · CC0
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).