1STDBUF(1) User Commands STDBUF(1)
2
3
4
6 stdbuf - Run COMMAND, with modified buffering operations for its stan‐
7 dard streams.
8
10 stdbuf OPTION... COMMAND
11
13 Run COMMAND, with modified buffering operations for its standard
14 streams.
15
16 Mandatory arguments to long options are mandatory for short options
17 too.
18
19 -i, --input=MODE
20 adjust standard input stream buffering
21
22 -o, --output=MODE
23 adjust standard output stream buffering
24
25 -e, --error=MODE
26 adjust standard error stream buffering
27
28 --help display this help and exit
29
30 --version
31 output version information and exit
32
33 If MODE is 'L' the corresponding stream will be line buffered. This
34 option is invalid with standard input.
35
36 If MODE is '0' the corresponding stream will be unbuffered.
37
38 Otherwise MODE is a number which may be followed by one of the follow‐
39 ing: KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P,
40 E, Z, Y. In this case the corresponding stream will be fully buffered
41 with the buffer size set to MODE bytes.
42
43 NOTE: If COMMAND adjusts the buffering of its standard streams ('tee'
44 does for e.g.) then that will override corresponding settings changed
45 by 'stdbuf'. Also some filters (like 'dd' and 'cat' etc.) don't use
46 streams for I/O, and are thus unaffected by 'stdbuf' settings.
47
48 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
49 Report stdbuf translation bugs to <http://translationproject.org/team/>
50
52 tail -f access.log | stdbuf -oL cut -d ' ' -f1 | uniq
53 This will immedidately display unique entries from access.log
54
56 On GLIBC platforms, specifying a buffer size, i.e. using fully buffered
57 mode will result in undefined operation.
58
60 Written by Padraig Brady.
61
63 Copyright © 2013 Free Software Foundation, Inc. License GPLv3+: GNU
64 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
65 This is free software: you are free to change and redistribute it.
66 There is NO WARRANTY, to the extent permitted by law.
67
69 The full documentation for stdbuf is maintained as a Texinfo manual.
70 If the info and stdbuf programs are properly installed at your site,
71 the command
72
73 info coreutils 'stdbuf invocation'
74
75 should give you access to the complete manual.
76
77
78
79GNU coreutils 8.22 October 2018 STDBUF(1)