From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001
From: Joe Hunkeler <jhunkeler@gmail.com>
Date: Tue, 11 Aug 2015 16:51:37 -0400
Subject: Repatch (from linux) of OSX IRAF

---
 pkg/system/doc/tail.hlp | 50 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 pkg/system/doc/tail.hlp

(limited to 'pkg/system/doc/tail.hlp')

diff --git a/pkg/system/doc/tail.hlp b/pkg/system/doc/tail.hlp
new file mode 100644
index 00000000..bd91e617
--- /dev/null
+++ b/pkg/system/doc/tail.hlp
@@ -0,0 +1,50 @@
+.help tail Nov84 system
+.ih
+NAME
+tail -- print the last few lines of the specified files
+.ih
+USAGE
+tail files
+.ih
+PARAMETERS
+.ls files
+A template specifying the files to be listed.
+.le
+.ls nlines = 12
+The number of lines to be printed.  If negative, the number
+of lines to be skipped, counting from the beginning of the file.
+.le
+.ih
+DESCRIPTION
+For each file in the input file list, \fItail\fR copies the last \fInlines\fR
+of the file to the standard output.  If there is more than one file in the
+input file list, as one line header is printed before each file.
+If "nlines" is negative, then abs(nlines) lines are skipped, and the rest
+of the file is printed, i.e., the tail of the file is still printed, but
+the offset is measured from the beginning of the file rather than the end.
+.ih
+EXAMPLES
+
+1. Prints the last 12 lines of each help file in the current directory.
+
+	cl> tail *.hlp
+
+2. Print the last line of each help file.
+
+	cl> tail *.hlp nl=1
+
+3. Prints the third through fifth lines of "file".  The same thing
+might be done (at least conceptually) by "head file,nlines=5"
+piped into "tail ,nlines=3".  However, \fItail\fR does not work on STDIN.
+
+.nf
+	cl> tail file nl=-2 | head nl=3
+.fi
+.ih
+BUGS
+\fITail\fR does not presently work on standard input, and therefore cannot
+be used in pipes.
+.ih
+SEE ALSO
+head
+.endhelp
-- 
cgit 

