diff options
Diffstat (limited to 'man')
-rw-r--r-- | man/.gitignore | 1 | ||||
-rw-r--r-- | man/Makefile.am | 1 | ||||
-rw-r--r-- | man/stdbuf.x | 16 |
3 files changed, 18 insertions, 0 deletions
diff --git a/man/.gitignore b/man/.gitignore index e9e270da9..1085ff055 100644 --- a/man/.gitignore +++ b/man/.gitignore @@ -72,6 +72,7 @@ sleep.1 sort.1 split.1 stat.1 +stdbuf.1 stty.1 su.1 sum.1 diff --git a/man/Makefile.am b/man/Makefile.am index ee16a3ff2..cacaba663 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -105,6 +105,7 @@ sleep.1: $(common_dep) $(srcdir)/sleep.x ../src/sleep.c sort.1: $(common_dep) $(srcdir)/sort.x ../src/sort.c split.1: $(common_dep) $(srcdir)/split.x ../src/split.c stat.1: $(common_dep) $(srcdir)/stat.x ../src/stat.c +stdbuf.1: $(common_dep) $(srcdir)/stdbuf.x ../src/stdbuf.c stty.1: $(common_dep) $(srcdir)/stty.x ../src/stty.c su.1: $(common_dep) $(srcdir)/su.x ../src/su.c sum.1: $(common_dep) $(srcdir)/sum.x ../src/sum.c diff --git a/man/stdbuf.x b/man/stdbuf.x new file mode 100644 index 000000000..93f0b8e4b --- /dev/null +++ b/man/stdbuf.x @@ -0,0 +1,16 @@ +'\" Copyright (C) 2009 Free Software Foundation, Inc. +'\" +'\" This is free software. You may redistribute copies of it under the terms +'\" of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. +'\" There is NO WARRANTY, to the extent permitted by law. +[NAME] +stdbuf \- Run COMMAND, with modified buffering operations for its standard streams. +[DESCRIPTION] +.\" Add any additional description here +[EXAMPLES] +.B tail -f access.log | stdbuf -oL cut -d \(aq \(aq -f1 | uniq +.br +This will immedidately display unique entries from access.log +[BUGS] +On GLIBC platforms, specifying a buffer size, i.e. using fully buffered mode +will result in undefined operation. |