1STDBUF(1)                        User Commands                       STDBUF(1)
2
3
4

NAME

6       stdbuf  - Run COMMAND, with modified buffering operations for its stan‐
7       dard streams.
8

SYNOPSIS

10       stdbuf OPTION... COMMAND
11

DESCRIPTION

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  example)  then  that  will override corresponding changes by
45       '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

EXAMPLES

49       tail -f access.log | stdbuf -oL cut -d ' ' -f1 | uniq
50       This will immediately display unique entries from access.log
51

BUGS

53       On  GLIBC  platforms,  specifying  a  buffer  size,  i.e.,  using fully
54       buffered mode will result in undefined operation.
55

AUTHOR

57       Written by Padraig Brady.
58

REPORTING BUGS

60       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
61       Report   stdbuf   translation    bugs    to    <https://translationpro
62       ject.org/team/>
63
65       Copyright  ©  2018  Free Software Foundation, Inc.  License GPLv3+: GNU
66       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
67       This is free software: you are free  to  change  and  redistribute  it.
68       There is NO WARRANTY, to the extent permitted by law.
69

SEE ALSO

71       Full documentation at: <https://www.gnu.org/software/coreutils/stdbuf>
72       or available locally via: info '(coreutils) stdbuf invocation'
73
74
75
76GNU coreutils 8.30                 July 2018                         STDBUF(1)
Impressum