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  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

EXAMPLES

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

BUGS

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

AUTHOR

57       Written by Padraig Brady.
58

REPORTING BUGS

60       Report stdbuf bugs to bug-coreutils@gnu.org
61       GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
62       General help using GNU software: <http://www.gnu.org/gethelp/>
63       Report stdbuf translation bugs to <http://translationproject.org/team/>
64
66       Copyright © 2010 Free Software Foundation, Inc.   License  GPLv3+:  GNU
67       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
68       This  is  free  software:  you  are free to change and redistribute it.
69       There is NO WARRANTY, to the extent permitted by law.
70

SEE ALSO

72       The full documentation for stdbuf is maintained as  a  Texinfo  manual.
73       If  the  info  and stdbuf programs are properly installed at your site,
74       the command
75
76              info coreutils 'stdbuf invocation'
77
78       should give you access to the complete manual.
79
80
81
82GNU coreutils 8.4                  June 2018                         STDBUF(1)
Impressum