Read from standard input and write to standard output and files.
Synopsis
tee [OPTION]... [FILE]...
Description
Copy standard input to each FILE, and also to standard output. Runs in the just-bash WASM shell inside SLICC.
Options
-a, --appendāAppend to the given FILEs, do not overwrite.
Examples
$ echo "hello" | tee output.txt
Write to both stdout and output.txt.
$ ls | tee file-list.txt | wc -l
Save ls output to a file and count lines simultaneously.
Notes
Operates on the SLICC virtual filesystem (LightningFS/IndexedDB).
See Also
cat, echo