summaryrefslogtreecommitdiff
path: root/util/sbase/tail.1
diff options
context:
space:
mode:
Diffstat (limited to 'util/sbase/tail.1')
-rw-r--r--util/sbase/tail.151
1 files changed, 51 insertions, 0 deletions
diff --git a/util/sbase/tail.1 b/util/sbase/tail.1
new file mode 100644
index 00000000..c425aacf
--- /dev/null
+++ b/util/sbase/tail.1
@@ -0,0 +1,51 @@
+.Dd October 8, 2015
+.Dt TAIL 1
+.Os sbase
+.Sh NAME
+.Nm tail
+.Nd display final lines of files
+.Sh SYNOPSIS
+.Nm
+.Op Fl f
+.Op Fl c Ar num | Fl m Ar num | Fl n Ar num | Fl Ns Ar num
+.Op Ar file ...
+.Sh DESCRIPTION
+.Nm
+writes the last 10 lines of each
+.Ar file
+to stdout.
+If no
+.Ar file
+is given,
+.Nm
+reads from stdin.
+.Sh OPTIONS
+.Bl -tag -width Ds
+.It Fl c Ar num | Fl m Ar num | Fl n Ar num | Fl Ns Ar num
+Display final
+.Ar num
+bytes | characters | lines | lines.
+If
+.Ar num
+begins with '+'
+it is an offset from the beginning of each
+.Ar file .
+If
+.Ar num
+begins with '-' it is as if no sign was given.
+The default is 10 lines.
+.It Fl f
+If one
+.Ar file
+is specified, append lines to output as
+.Ar file
+grows.
+.El
+.Sh SEE ALSO
+.Xr head 1
+.Sh STANDARDS
+POSIX.1-2013.
+.Pp
+The
+.Op Fl Ns Ar num
+syntax is an extension to that specification.