stdbuf option… command
Run command with modified buffering operations for its standard streams.
i |
L the stream will be line buffered.
n is a number which may be followed by one of the following: KB=1000, K=KiB=1024, MB 1000*1000, M=MiB+1024*1024,
and so on for G, T, P, E, Z, Y
stream will be fully buffered with the buffer size of n
If COMMAND adjusts the buffering of its standard streams ('tee' does for example) then that will override corresponding changes by 'stdbuf'. Also some filters (like 'dd' and 'cat' etc.) don't use streams for I/O, and are thus unaffected by 'stdbuf' settings.
tail -f access.log | stdbuf --output=L cut -d ' ' -f1 | uniq