New answers tagged

4

Perhaps you only have to change the buffering: # buffering totally off stdbuf -i0 -o0 -e0 command # buffering per line only stdbuf -oL -eL command It works for me here... your results may vary. If it doesn't work, try putting it before different commands (not while or read though, since they are bash builtins). for i in {1..2000}; do sleep 0.1 &&...


1

You are running up against a theoretical problem. sort cannot not print anything at all until it has processed all the input. uniq will only squeeze repeated lines (which is why it is so often preceded by sort), so your output will differ from your input only if the input has the same line twice in a row. If your input is just a little random you probably ...



Top 50 recent answers are included