1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
2 .TH STDBUF "1" "January 2016" "GNU coreutils 8.25" "User Commands"
5 Run COMMAND, with modified buffering operations for its standard streams.
8 \fI\,OPTION\/\fR... \fI\,COMMAND\/\fR
10 .\" Add any additional description here
12 Run COMMAND, with modified buffering operations for its standard streams.
14 Mandatory arguments to long options are mandatory for short options too.
16 \fB\-i\fR, \fB\-\-input\fR=\fI\,MODE\/\fR
17 adjust standard input stream buffering
19 \fB\-o\fR, \fB\-\-output\fR=\fI\,MODE\/\fR
20 adjust standard output stream buffering
22 \fB\-e\fR, \fB\-\-error\fR=\fI\,MODE\/\fR
23 adjust standard error stream buffering
26 display this help and exit
29 output version information and exit
31 If MODE is 'L' the corresponding stream will be line buffered.
32 This option is invalid with standard input.
34 If MODE is '0' the corresponding stream will be unbuffered.
36 Otherwise MODE is a number which may be followed by one of the following:
37 KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.
38 In this case the corresponding stream will be fully buffered with the buffer
39 size set to MODE bytes.
41 NOTE: If COMMAND adjusts the buffering of its standard streams ('tee' does
42 for example) then that will override corresponding changes by 'stdbuf'.
43 Also some filters (like 'dd' and 'cat' etc.) don't use streams for I/O,
44 and are thus unaffected by 'stdbuf' settings.
46 .B tail -f access.log | stdbuf -oL cut -d \(aq \(aq -f1 | uniq
48 This will immedidately display unique entries from access.log
50 On GLIBC platforms, specifying a buffer size, i.e., using fully buffered mode
51 will result in undefined operation.
53 Written by Padraig Brady.
55 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
57 Report stdbuf translation bugs to <http://translationproject.org/team/>
59 Copyright \(co 2016 Free Software Foundation, Inc.
60 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
62 This is free software: you are free to change and redistribute it.
63 There is NO WARRANTY, to the extent permitted by law.
65 Full documentation at: <http://www.gnu.org/software/coreutils/stdbuf>
67 or available locally via: info \(aq(coreutils) stdbuf invocation\(aq