Query: stdbuf
OS: freebsd
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
STDBUF(1) BSD General Commands Manual STDBUF(1)NAMEstdbuf -- change standard streams initial bufferingSYNOPSISstdbuf [-e bufdef] [-i bufdef] [-o bufdef] [command [...]]DESCRIPTIONstdbuf is used to change the initial buffering of standard input, standard output and/or standard error streams for command. It relies on libstdbuf(3) which is loaded and configured by stdbuf through environment variables. The options are as follows: -e bufdef Set initial buffering of the standard error stream for command as defined by bufdef (see BUFFER DEFINITION). -i bufdef Set initial buffering of the standard input stream for command as defined by bufdef (see BUFFER DEFINITION). -o bufdef Set initial buffering of the standard output stream for command as defined by bufdef (see BUFFER DEFINITION).BUFFER DEFINITIONBuffer definition is the same as in libstdbuf(3): "0" unbuffered "L" line buffered "B" fully buffered with the default buffer size size fully buffered with a buffer of size bytes (suffixes 'k', 'M' and 'G' are accepted)EXAMPLESIn the following example, the stdout stream of the awk(1) command will be fully buffered by default because it does not refer to a terminal. stdbuf is used to force it to be line-buffered so vmstat(8)'s output will not stall until the full buffer fills. # vmstat 1 | stdbuf -o L awk '$2 > 1 || $3 > 1' | cat -nSEE ALSOlibstdbuf(3), setvbuf(3)HISTORYThe stdbuf utility first appeared in FreeBSD 8.4.AUTHORSThe original idea of the stdbuf command comes from Padraig Brady who implemented it in the GNU coreutils. Jeremie Le Hen implemented it on FreeBSD.BSDApril 28, 2012 BSD
Related Man Pages |
---|
stdbuf(1) - debian |
libstdbuf(3) - freebsd |
setbuffer(3) - freebsd |
setlinebuf(3) - freebsd |
stdbuf(1) - posix |
Similar Topics in the Unix Linux Community |
---|
changing col(1) command stdout as fully buffered? |
space in output from awk command |
how to display date along with vmstat |
how to read an APAR descr |
Teriminal name priniting using awk |