New answers tagged tee
1
vote
Why does "seq 1000000 | tee /dev/stdout" produce more single-digit numbers than expected?
As Stéphane Chazelas explained, tee is the wrong tool for the job of duplicating line-based input into a single output stream. It interleaves data at block boundaries that can be within a line.
If ...
23
votes
Why does "seq 1000000 | tee /dev/stdout" produce more single-digit numbers than expected?
Having both of tee's outputs going to the same pipe creates tearing within lines because they don't start/end at the boundaries of read/write blocks.
tee, reads its input and writes its output by ...
Top 50 recent answers are included
Related Tags
tee × 235bash × 93
pipe × 71
io-redirection × 42
shell-script × 36
stdout × 32
shell × 24
linux × 23
grep × 15
command-line × 11
process-substitution × 10
sudo × 9
cat × 9
scripting × 8
stderr × 8
text-processing × 7
logs × 7
stdin × 6
exec × 6
ssh × 5
sed × 5
terminal × 5
file-descriptors × 5
output × 5
ubuntu × 4