386BSD 0.1 development
authorWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Sun, 28 Jun 1992 00:51:22 +0000 (16:51 -0800)
committerWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Sun, 28 Jun 1992 00:51:22 +0000 (16:51 -0800)
Work on file usr/othersrc/public/textutils-1.3/man/man1/cat.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/cmp.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/comm.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/cut.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/csplit.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/head.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/expand.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/fold.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/nl.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/join.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/paste.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/pr.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/split.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/sort.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/tac.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/tail.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/sum.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/unexpand.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/uniq.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/wc.1
Work on file usr/othersrc/public/textutils-1.3/man/man1/tr.1

Co-Authored-By: Lynne Greer Jolitz <ljolitz@cardio.ucsf.edu>
Synthesized-from: 386BSD-0.1

21 files changed:
usr/othersrc/public/textutils-1.3/man/man1/cat.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/cmp.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/comm.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/csplit.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/cut.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/expand.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/fold.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/head.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/join.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/nl.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/paste.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/pr.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/sort.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/split.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/sum.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/tac.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/tail.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/tr.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/unexpand.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/uniq.1 [new file with mode: 0644]
usr/othersrc/public/textutils-1.3/man/man1/wc.1 [new file with mode: 0644]

diff --git a/usr/othersrc/public/textutils-1.3/man/man1/cat.1 b/usr/othersrc/public/textutils-1.3/man/man1/cat.1
new file mode 100644 (file)
index 0000000..b14980e
--- /dev/null
@@ -0,0 +1,54 @@
+.TH CAT 1L \" -*- nroff -*-
+.SH NAME
+cat \- concatenate files and print on the standard output
+.SH SYNOPSIS
+.B cat
+[\-benstuvAET] [\-\-number] [\-\-number-nonblank] [\-\-squeeze-blank]
+[\-\-show-nonprinting] [\-\-show-ends] [\-\-show-tabs] [\-\-show-all] [file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR cat .
+.B cat
+writes the contents of each given file, or the standard input if
+none are given or when a file named `\-' is given, to the standard
+output.
+.SS OPTIONS
+.TP
+.I "\-b, \-\-number-nonblank"
+Number all nonblank output lines, starting with 1.
+.TP
+.I \-e
+Equivalent to
+.IR \-vE .
+.TP
+.I "\-n, \-\-number"
+Number all output lines, starting with 1.
+.TP
+.I "\-s, \-\-squeeze-blank"
+Replace multiple adjacent blank lines with a single blank line.
+.TP
+.I \-t
+Equivalent to
+.IR \-vT .
+.TP
+.I \-u
+Ignored; for Unix compatibility.
+.TP
+.I "\-v, \-\-show-nonprinting"
+Display control characters except for LFD and TAB using `^' notation
+and precede characters that have the high bit set with `M-'.
+.TP
+.I "\-A, \-\-show-all"
+Equivalent to
+.IR \-vET .
+.TP
+.I "\-E, \-\-show-ends"
+Display a `$' after the end of each line.
+.TP
+.I "\-T, \-\-show-tabs"
+Display TAB characters as `^I'.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/cmp.1 b/usr/othersrc/public/textutils-1.3/man/man1/cmp.1
new file mode 100644 (file)
index 0000000..6fc879d
--- /dev/null
@@ -0,0 +1,42 @@
+.TH CMP 1L \" -*- nroff -*-
+.SH NAME
+cmp \- compare two files
+.SH SYNOPSIS
+.B cmp
+[\-cls] [\-\-show-chars] [\-\-verbose] [\-\-silent] [\-\-quiet] file1 [file2]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR cmp .
+.B cmp
+compares the two given files, and if they differ, tells the first
+byte and line number where they differ.  The file name `-' is always
+the standard input.  If one file name is omitted, the standard input
+is used as well.
+.PP
+It exits with the value
+.TP
+0
+The files are identical.
+.TP
+1
+The files differ.
+.TP
+2
+An error occurred.
+.SS OPTIONS
+.TP
+.I "\-c, \-\-show-chars"
+Print the differing characters like `cat \-t' (except that newlines are
+printed as `^J').
+.TP
+.I "\-l, \-\-verbose"
+Print the (decimal) offsets and (octal) values of all differing bytes.
+.TP
+.I "\-s, \-\-silent, \-\-quiet"
+Do not print anything; only return an exit status indicating whether
+the files differ.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/comm.1 b/usr/othersrc/public/textutils-1.3/man/man1/comm.1
new file mode 100644 (file)
index 0000000..a6e3c88
--- /dev/null
@@ -0,0 +1,33 @@
+.TH COMM 1L \" -*- nroff -*-
+.SH NAME
+comm \- compare two sorted files line by line
+.SH SYNOPSIS
+.B comm
+[\-123] file1 file2
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR comm .
+.B comm
+prints lines that are common, and lines that are unique, to two input
+files.  The two files must be sorted before
+.B comm
+can be used.  The file name `\-' means the standard input.
+.PP
+With no options,
+.B comm
+produces three column output.  Column
+one contains lines unique to
+.IR file1 ,
+column two contains
+lines unique to
+.IR file2 ,
+and column three contains lines common to both files.
+.SS OPTIONS
+.PP
+The options
+.IR \-1 ,
+.IR \-2 ,
+and
+.I \-3
+suppress printing of the corresponding columns.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/csplit.1 b/usr/othersrc/public/textutils-1.3/man/man1/csplit.1
new file mode 100644 (file)
index 0000000..3bcbb47
--- /dev/null
@@ -0,0 +1,86 @@
+.TH CSPLIT 1L \" -*- nroff -*-
+.SH NAME
+csplit \- split a file into sections determined by context lines
+.SH SYNOPSIS
+.B csplit
+[\-sk] [\-f prefix] [\-n digits] [\-\-prefix=prefix] [\-\-digits=digits]
+[\-\-quiet] [\-\-silent] [\-\-keep-files] file pattern...
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR csplit .
+.B csplit
+creates zero or more output files containing sections of the given
+input
+.IR file ,
+or the standard input if the name `\-' is given.  By default,
+.B csplit
+prints the number of bytes written to each output file after it has
+been created.
+.PP
+The contents of the output files are determined by the
+.I pattern
+arguments.  An error occurs if a pattern argument refers to a
+nonexistent line of the input file, such as if no remaining line
+matches a given regular expression.  The types of pattern arguments
+are:
+.RS
+.TP
+.I line
+.br
+Create an output file containing the current line up to (but not
+including) line \fIline\fP (a positive integer) of the input file.  If
+followed by a repeat count, also create an output file containing the
+next \fIline\fP lines of the input file once for each repeat.
+.TP
+/\fIregexp\fP/[\fIoffset\fP]
+.br
+Create an output file containing the current line up to (but not
+including) the next line of the input file that contains a match for
+\fIregexp\fP.  The optional \fIoffset\fP is a `+' or `\-' followed by
+a positive integer; if it is given, the line that starts the next
+section of the input file is the line that contains the match for
+\fIregexp\fP plus the offset.
+.TP
+%\fIregexp\fP%[\fIoffset\fP]
+.br
+Like the previous type, except that it does not create an output file,
+so that section of the input file is effectively ignored.
+.TP
+{\fIrepeat-count\fP}
+.br
+Repeat the previous pattern \fIrepeat-count\fP (a positive integer)
+additional times.
+.RE
+.PP
+The output file names consist of a prefix followed by a number, so
+that concatenating the output files in sorted order by file name
+produces the original input file, in order.  The default output file
+name prefix is `xx'.
+.PP
+By default, if
+.B csplit
+encounters an error or receives a hangup, interrupt, quit, or
+terminate signal, it removes any output files that it has created so
+far before it exits.
+.SS OPTIONS
+.TP
+.I "\-f, \-\-prefix=prefix"
+Use
+.I prefix
+as the output file name prefix.
+.TP
+.I "\-k, \-\-keep-files"
+Do not remove output files.
+.TP
+.I "\-n, \-\-digits=digits"
+Use output file names containing numbers that are
+.I digits
+digits long instead of the default 2.
+.TP
+.I "\-s, \-\-silent, \-\-quiet"
+Do not print counts of output file sizes.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/cut.1 b/usr/othersrc/public/textutils-1.3/man/man1/cut.1
new file mode 100644 (file)
index 0000000..3343920
--- /dev/null
@@ -0,0 +1,65 @@
+.TH CUT 1L \" -*- nroff -*-
+.SH NAME
+cut \- remove sections from each line of files
+.SH SYNOPSIS
+.B cut
+{\-b byte-list, \-\-bytes=byte-list} [\-n] [file...]
+
+.B cut
+{\-c character-list, \-\-characters=character-list} [file...]
+
+.B cut
+{\-f field-list, \-\-fields=field-list} [\-d delim] [\-s]
+[\-\-delimiter=delim] [\-\-only-delimited] [file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR cut .
+.B cut
+prints sections of each line of each input file, or the standard
+input if no files are given.  A file name of `-' means standard input.
+Which sections are printed is selected by the options.
+.SS OPTIONS
+The
+.IR byte-list ,
+.IR character-list ,
+and
+.I field-list
+are one or more numbers or ranges (two numbers separated by a dash)
+separated by commas.  The first byte, character, and field are
+numbered 1.  Incomplete ranges may be given: `\-m' means
+`1\-m'; `n\-' means `n' through end of line or last field.
+.TP
+.I "\-b, \-\-bytes byte-list"
+Print only the bytes in positions listed in
+.IR byte-list .
+Tabs and backspaces are treated like any other character; they take up
+1 byte.
+.TP
+.I "\-c, \-\-characters character-list"
+Print only characters in positions listed in
+.IR character-list .
+The same as \-b for now, but internationalization will change that.
+Tabs and backspaces are treated like any other character; they take up
+1 character.
+.TP
+.I "\-f, \-\-fields field-list"
+Print only the fields listed in
+.IR field-list .
+Fields are separated by a TAB by default.
+.TP
+.I "\-d, \-\-delimiter delim"
+For \-f, fields are separated by the first character in
+.I delim
+instead of by TAB.
+.TP
+.I \-n
+Do not split multibyte characters (no-op for now).
+.TP
+.I "\-s, \-\-only-delimited"
+For \-f, do not print lines that do not contain the field separator
+character.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/expand.1 b/usr/othersrc/public/textutils-1.3/man/man1/expand.1
new file mode 100644 (file)
index 0000000..b29b8a5
--- /dev/null
@@ -0,0 +1,40 @@
+.TH EXPAND 1L \" -*- nroff -*-
+.SH NAME
+expand \- convert tabs to spaces
+.SH SYNOPSIS
+.B expand
+[\-tab1[,tab2[,...]]] [\-t tab1[,tab2[,...]]] [\-i]
+[\-\-tabs=tab1[,tab2[,...]]] [\-\-initial] [file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR expand .
+.B expand
+writes the contents of each given file, or the standard input if none
+are given or when a file named `\-' is given, to the standard output,
+with tab characters converted to the appropriate number of spaces.  By
+default,
+.B expand
+converts all tabs to spaces.  It preserves backspace characters in the
+output; they decrement the column count for tab calculations.  The
+default action is equivalent to \-8 (set tabs every 8 columns).
+.SS OPTIONS
+.TP
+.I "\-, \-t, \-\-tabs tab1[,tab2[,...]]"
+If only one tab stop is given, set the tabs \fItab1\fP spaces apart
+instead of the default 8.  Otherwise, set the tabs at columns
+\fItab1\fP, \fItab2\fP, etc. (numbered from 0) and replace any tabs
+beyond the tabstops given with single spaces.  If the tabstops are
+specified with the
+.I \-t
+or
+.I \-\-tabs
+option, they can be separated by blanks as well as by commas.
+.TP
+.I "\-i, \-\-initial"
+Only convert initial tabs (those that precede all non space or tab
+characters) on each line to spaces.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/fold.1 b/usr/othersrc/public/textutils-1.3/man/man1/fold.1
new file mode 100644 (file)
index 0000000..55fce99
--- /dev/null
@@ -0,0 +1,38 @@
+.TH FOLD 1L \" -*- nroff -*-
+.SH NAME
+fold \- wrap each input line to fit in specified width
+.SH SYNOPSIS
+.B fold
+[\-bs] [\-w width] [\-\-bytes] [\-\-spaces] [\-\-width=width] [file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR fold .
+.B fold
+prints the specified files, or the standard input when no files are
+given or the filename `\-' is encountered, on the standard output.  It
+breaks long lines into multiple shorter lines by inserting a newline
+at column 80.  It counts screen columns, so tab characters usually
+take more than one column, backspace characters decrease the column
+count, and carriage return characters set the column count back to zero.
+.SS OPTIONS
+.TP
+.I "\-b, \-\-bytes"
+Count bytes rather than columns, so that tabs, backspaces, and
+carriage returns are each counted as taking up one column, just like
+other characters.
+.TP
+.I "\-s, \-\-spaces"
+Break at word boundaries.  If the line contains any blanks, the line
+is broken after the last blank that falls within the maximum line
+length.  If there are no blanks, the line is broken at the maximum
+line length, as usual.
+.TP
+.I "\-w, \-\-width width"
+Use a maximum line length of
+.I width
+columns instead of 80.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/head.1 b/usr/othersrc/public/textutils-1.3/man/man1/head.1
new file mode 100644 (file)
index 0000000..4f803fe
--- /dev/null
@@ -0,0 +1,51 @@
+.TH HEAD 1L \" -*- nroff -*-
+.SH NAME
+head \- output the first part of files
+.SH SYNOPSIS
+.B head
+[\-c N[bkm]] [\-n N] [\-qv] [\-\-bytes=N[bkm]] [\-\-lines=N]
+[\-\-quiet] [\-\-silent] [\-\-verbose] [file...]
+
+.B head
+[\-Nbcklmqv] [file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR head .
+.B head
+prints the first part (10 lines by default) of each given file; it
+reads from standard input if no files are given or when a filename of
+`\-' is encountered.  If more than one file is given, it prints a
+header consisting of the file's name enclosed in `==>' and `<=='
+before the output for each file.
+.SS OPTIONS
+.PP
+.B head
+accepts two option formats: the new one, in which numbers are
+arguments to the option letters, and the old one, in which the number
+precedes any option letters.
+.TP
+.I "\-c N, \-\-bytes N"
+Print first N bytes.  N is a nonzero integer, optionally followed by one
+of the following characters to specify a different unit.
+.RS
+.IP b
+512-byte blocks.
+.IP k
+1-kilobyte blocks.
+.IP m
+1-megabyte blocks.
+.RE
+.TP
+.I "\-l, \-n N, \-\-lines N"
+Print first N lines.
+.TP
+.I "\-q, \-\-quiet, \-\-silent"
+Never print filename headers.
+.TP
+.I "\-v, \-\-verbose"
+Always print filename headers.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/join.1 b/usr/othersrc/public/textutils-1.3/man/man1/join.1
new file mode 100644 (file)
index 0000000..150d97a
--- /dev/null
@@ -0,0 +1,93 @@
+.TH JOIN 1L \" -*- nroff -*-
+.SH NAME
+join \- join lines of two files on a common field
+.SH SYNOPSIS
+.B join
+[\-a 1|2] [\-v 1|2] [\-e empty-string] [\-o field-list...] [\-t char]
+[\-j[1|2] field] [\-1 field] [\-2 field] file1 file2
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR join .
+.B join
+prints to the standard output a line for each pair of input lines, one
+each from
+.I file1
+and
+.IR file2 ,
+that have identical join fields.  Either filename (but not both) can
+be `\-', meaning the standard input.
+.I file1
+and
+.I file2
+should be already sorted in increasing order (not numerically) on the
+join fields; unless the
+.I \-t
+option is given, they should be sorted ignoring blanks at the start of
+the line, as
+.B sort
+does when given the
+.I \-b
+option.
+.PP
+The defaults are: the join field is the first field in each line;
+fields in the input are separated by one or more blanks, with leading
+blanks on the line ignored; fields in the output are separated by a
+space; each output line consists of the join field, the remaining
+fields from
+.IR file1 ,
+then the remaining fields from
+.IR file2 .
+.SS OPTIONS
+.TP
+.I "\-a file-number"
+Print a line for each unpairable line in file
+.I file-number
+(either 1 or 2), in addition to the normal output.
+.TP
+.I "\-e string"
+Replace empty output fields (those that are missing in the input) with
+.IR string .
+.TP
+.I "\-1, \-j1 field"
+Join on field
+.I field
+(a positive integer) of file 1.
+.TP
+.I "\-2, \-j2 field"
+Join on field
+.I field
+(a positive integer) of file 2.
+.TP
+.I "\-j field"
+Equivalent to
+.IR "\-1 field \-2 field" .
+.TP
+.I "\-o field-list..."
+Construct each output line according to the format in
+.IR field-list .
+Each element in
+.I field-list
+consists of a file number (either 1 or 2), a period, and a field
+number (a positive integer).  The elements in the list are separated
+by commas or blanks.  Multiple
+.I field-list
+arguments can be given after a single
+.I \-o
+option; the values of all lists given with
+.I \-o
+are concatenated together.
+.TP
+.I "\-t char"
+Use character
+.I char
+as the input and output field separator.
+.TP
+.I "\-v file-number"
+Print a line for each unpairable line in file
+.I file-number
+(either 1 or 2), instead of the normal output.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/nl.1 b/usr/othersrc/public/textutils-1.3/man/man1/nl.1
new file mode 100644 (file)
index 0000000..ac4c62d
--- /dev/null
@@ -0,0 +1,119 @@
+.TH NL 1L \" -*- nroff -*-
+.SH NAME
+nl \- number lines of files
+.SH SYNOPSIS
+.B nl
+[\-h header-style] [\-b body-style] [\-f footer-style] [\-p] [\-d cc]
+[\-v start-number] [\-i increment] [\-l lines] [\-s line-separator]
+[\-w line-no-width] [\-n {ln,rn,rz}] [\-\-header-numbering=style]
+[\-\-body-numbering=style] [\-\-footer-numbering=style]
+[\-\-first-page=number] [\-\-page-increment=number] [\-\-no-renumber]
+[\-\-join-blank-lines=number] [\-\-number-separator=string]
+[\-\-number-width=number] [\-\-number-format={ln,rn,rz}]
+[\-\-section-delimiter=cc] [file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR nl .
+.B nl
+copies each given file, or the standard input if none are given or
+when a file named `\-' is given, to the standard output, with line
+numbers added to some or all of the lines.
+.PP
+.B nl
+considers its input to be composed of logical pages; by default,
+the line number is reset to 1 at the top of each logical page.
+.B nl
+treats all of the input files as a single document; it does not reset
+line numbers or logical pages between files.
+.PP
+A logical page consists of three sections: header, body, and footer.
+Any of the sections can be empty.  Each can be numbered in a different
+style from the others.
+.PP
+The beginnings of the sections of logical pages are indicated in the
+input file by a line containing nothing except one of the delimeter
+strings shown below:
+.PP
+.nf
+
+\e:\e:\e: start of header
+\e:\e: start of body
+\e: start of footer
+.fi
+.PP
+The two characters from which these strings are made can be changed
+with an option (see below), but the pattern and length of each string
+cannot be changed.
+.PP
+The section delimiter strings are replaced by an empty line on output.
+Any text that comes before the first section delimiter string in the
+input file is considered to be part of a body section, so a file that
+does not contain any section delimiter strings is considered to
+consist of a single body section.
+.SS OPTIONS
+.TP
+.I "\-h, \-\-header-numbering=style"
+See \-\-footer-numbering.
+.TP
+.I "\-b, \-\-body-numbering=style"
+See \-\-footer-numbering.
+.TP
+.I "\-f, \-\-footer-numbering=style"
+Select the numbering style for lines in the footer section of each
+logical page.  When a line is not numbered, the current line number is
+not incremented, but the line number separator character is still
+prepended to the line.  The styles are:
+.RS
+.IP a
+number all lines
+.IP t
+number only nonempty lines (default for body)
+.IP n
+number no lines (default for header and footer)
+.IP p\fIregexp\fP
+number only lines that contain a match for \fIregexp\fP
+.RE
+.TP
+.I "\-p, \-\-no-renumber"
+Do not reset the line number at the start of a logical page.
+.TP
+.I "\-v, \-\-first-page=number"
+Set the initial line number on each logical page to \fInumber\fP
+(default 1).
+.TP
+.I "\-i, \-\-page-increment=number"
+Increment line numbers by \fInumber\fP (default 1).
+.TP
+.I "\-l, \-\-join-blank-lines=number"
+Consider \fInumber\fP (default 1) consecutive empty lines to be one
+logical line for numbering, and only number the last one.  Where fewer
+than \fInumber\fP consecutive empty lines occur, do not number them.
+An empty line is one that contains no characters, not even spaces or tabs.
+.TP
+.I "\-s, \-\-number-separator=string"
+Separate the line number from the text line in the output with
+\fIstring\fP (default is a TAB character).
+.TP
+.I "\-w, \-\-number-width=number"
+Use \fInumber\fP characters for line numbers (default 6).
+.TP
+.I "\-n, \-\-number-format={ln,rn,rz}"
+Select the line numbering format:
+.RS
+.IP ln
+left justified, no leading zeros 
+.IP rn
+right justified, no leading zeros (default)
+.IP rz
+right justified, leading zeros
+.RE
+.TP
+.I "\-d, \-\-section-delimiter=cc"
+Set the two delimeter characters that indicate the beginnings of
+logical page sections; if only one is given, the second remains ':'.
+To enter '\e', use '\e\e'.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/paste.1 b/usr/othersrc/public/textutils-1.3/man/man1/paste.1
new file mode 100644 (file)
index 0000000..59ab25b
--- /dev/null
@@ -0,0 +1,31 @@
+.TH PASTE 1L \" -*- nroff -*-
+.SH NAME
+paste \- merge lines of files
+.SH SYNOPSIS
+.B paste
+[\-s] [\-d delim-list] [\-\-serial] [\-\-delimiters=delim-list]
+[file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR paste .
+.B paste
+prints lines consisting of sequentially corresponding lines of each
+given file, separated by TABs, terminated by a newline.  If no files
+are given, the standard input is used.  A file name of `-' means
+standard input.
+.SS OPTIONS
+.TP
+.I "\-s, \-\-serial"
+Paste the lines of one file at a time rather than one line from each file.
+.TP
+.I "\-d, \-\-delimiters delim-list"
+Consecutively use the characters in
+.I delim-list
+instead of TAB to separate merged lines.  When
+.I delim-list
+is exhausted, start again at its beginning.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/pr.1 b/usr/othersrc/public/textutils-1.3/man/man1/pr.1
new file mode 100644 (file)
index 0000000..b32d7c1
--- /dev/null
@@ -0,0 +1,97 @@
+.TH PR 1L \" -*- nroff -*-
+.SH NAME
+pr \- convert text files for printing
+.SH SYNOPSIS
+.B pr
+[+PAGE] [\-COLUMN] [\-abcdfFmrtv] [\-e[in-tab-char[in-tab-width]]]
+[\-h header] [\-i[out-tab-char[out-tab-width]]] [\-l page-length]
+[\-n[number-separator[digits]]] [\-o left-margin]
+[\-s[column-separator]] [\-w page-width] [file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR pr .
+.B pr
+prints on the standard output a paginated and optionally multicolumn
+copy of the text files given on the command line, or of the standard
+input if no files are given or when the file name `\-' is encountered.
+Form feeds in the input cause page breaks in the output.
+.SS OPTIONS
+.TP
+.I \+PAGE
+Begin printing with page \fIPAGE\fP.
+.TP
+.I \-COLUMN
+Produce \fICOLUMN\fP-column output and print columns down.  The column
+width is automatically decreased as \fICOLUMN\fP increases; unless you
+use the \fI\-w\fP option to increase the page width as well, this
+option might cause some columns to be truncated.
+.TP
+.I \-a
+Print columns across rather than down.
+.TP
+.I \-b
+Balance columns on the last page.
+.TP
+.I \-c
+Print control characters using hat notation (e.g., `^G'); print other
+unprintable characters in octal backslash notation.
+.TP
+.I \-d
+Double space the output.
+.TP
+.I "\-e[in-tab-char[in-tab-width]]"
+Expand tabs to spaces on input.  Optional argument \fIin-tab-char\fP
+is the input tab character, default tab.  Optional argument
+\fIin-tab-width\fP is the input tab character's width, default 8.
+.TP
+.I "\-F, \-f"
+Use a formfeed instead of newlines to separate output pages.
+.TP
+.I "\-h header"
+Replace the filename in the header with the string \fIheader\fP.
+.TP
+.I "\-i[out-tab-char[out-tab-width]]"
+Replace spaces with tabs on output.  Optional argument
+\fIout-tab-char\fP is the output tab character, default tab.
+Optional argument \fIout-tab-width\fP is the output tab character's
+width, default 8.
+.TP
+.I "\-l page-length"
+Set the page length to \fIpage-length\fP lines.  The default is 66.
+If \fIpage-length\fP is less than 10, the headers and footers are
+omitted, as if the \fI\-t\fP option had been given.
+.TP
+.I \-m
+Print all files in parallel, one in each column.
+.TP
+.I "\-n[number-separator[digits]]"
+Precede each column with a line number; with parallel files, precede
+each line with a line number.  Optional argument
+\fInumber-separator\fP is the character to print after each number,
+default tab.  Optional argument \fIdigits\fP is the number of digits
+per line number, default 5.
+.TP
+.I "\-o left-margin"
+Offset each line with a margin \fIleft-margin\fP spaces wide.  The
+total page width is this offset plus the width set with the \fI\-w\fP
+option.
+.TP
+.I \-r
+Do not print a warning message when an argument file cannot be opened.
+Failure to open a file still makes the exit status nonzero, however.
+.TP
+.I "\-s[column-separator]"
+Separate columns by the single character \fIcolumn-separator\fP,
+default tab, instead of spaces.
+.TP
+.I \-t
+Do not print the 5-line header and the 5-line trailer that are
+normally on each page, and do not fill out the bottoms of pages (with
+blank lines or formfeeds).
+.TP
+.I \-v
+Print unprintable characters in octal backslash notation.
+.TP
+.I "\-w page-width"
+Set the page width to \fIpage-width\fP columns.  The default is 72.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/sort.1 b/usr/othersrc/public/textutils-1.3/man/man1/sort.1
new file mode 100644 (file)
index 0000000..d7e68b3
--- /dev/null
@@ -0,0 +1,185 @@
+.TH SORT 1L \" -*- nroff -*-
+.SH NAME
+sort \- sort lines of text files
+.SH SYNOPSIS
+.B sort
+[\-cmus] [\-t separator] [\-o output-file] [\-bdfiMnr] [+POS1 [\-POS2]]
+[\-k POS1[,POS2]] [file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR sort .
+.B sort
+sorts, merges, or compares all the lines from the given files, or the standard
+input if no files are given.  A file name of `-' means standard input.
+By default,
+.B sort
+writes the results to the standard output.
+.PP
+.B sort
+has three modes of operation: sort (the default), merge, and check for
+sortedness.  The following options change the operation mode:
+.TP
+.I \-c
+Check whether the given files are already sorted: if they are not all
+sorted, print an error message and exit with a status of 1.
+.TP
+.I \-m
+Merge the given files by sorting them as a group.  Each input file
+should already be individually sorted.  It always works to sort
+instead of merge; merging is provided because it is faster, in the
+case where it works.
+.PP
+A pair of lines is compared as follows: 
+if any key fields have been specified,
+.B sort
+compares each pair of fields, in the order specified on the command
+line, according to the associated ordering options, until a difference
+is found or no fields are left.
+.PP 
+If any of the global options
+.I Mbdfinr
+are given but no key fields are 
+specified,
+.B sort
+compares the entire lines according to the global options.
+.PP 
+Finally, as a last resort when all keys compare equal
+(or if no ordering options were specified at all),
+.B sort
+compares the lines byte by byte in machine collating sequence.  The
+.I \-s
+option disables this last resort comparison, producing a stable sort.
+.PP
+GNU
+.B sort
+has no limits on input line length or restrictions on bytes allowed
+within lines.  In addition, if the final byte of an input file is not
+a newline, GNU
+.B sort
+silently supplies one.  In some cases, such as exactly what the
+.I \-b
+and
+.I \-f
+options do, BSD and System V
+.B sort
+programs produce different output; GNU
+.B sort
+follows the POSIX behavior, which is usually like the System V behavior.
+.PP
+If the environment variable TMPDIR is set,
+.B sort
+uses it as the directory in which to put temporary files instead of
+the default, /tmp.
+.PP
+The following options affect the ordering of output lines.  They may
+be specified globally or as part of a specific key field.  If no key
+fields are specified, global options apply to comparison of entire
+lines; otherwise the global options are inherited by key fields that
+do not specify any special options of their own.
+.TP
+.I \-b
+Ignore leading blanks when finding sort keys in each line.
+.TP
+.I \-d
+Sort in `dictionary order': ignore all characters except letters,
+digits and blanks when sorting.
+.TP
+.I \-f
+Fold lower case characters into the equivalent upper case characters
+when sorting so that, for example, `b' is sorted the same way `B' is.
+.TP
+.I \-i
+Ignore characters outside the ASCII range 040-0176 (inclusive) when sorting.
+.TP
+.I \-M
+An initial string, consisting of any amount of white space, followed 
+by three letters abbreviating a month name, is folded to lower case 
+and compared in the order `jan' < `feb' < ... < `dec.'  Invalid names 
+compare low to valid names.  This option implies
+.IR \-b .
+.TP
+.I \-n
+Compare according to arithmetic value an initial numeric string
+consisting of optional white space, an optional \- sign, and zero or
+more digits, optionally followed by a decimal point and zero or more
+digits.  This option implies
+.IR \-b .
+.TP
+.I \-r
+Reverse the result of comparison, so that lines with greater key
+values appear earlier in the output instead of later.
+.PP
+Other options are:
+.TP
+.I "\-o output-file"
+Write output to
+.I output-file
+instead of to the standard output.  If
+.I output-file
+is one of the input files,
+.B sort
+copies it to a temporary file before sorting and writing the output to
+.IR output-file .
+.TP
+.I "\-t separator"
+Use character
+.I separator
+as the field separator when finding the sort keys in each line.  By
+default, fields are separated by the empty string between a
+non-whitespace character and a whitespace character.  That is to say,
+given the input line ` foo bar',
+.B sort
+breaks it into fields ` foo' and ` bar'.  The field separator is not
+considered to be part of either the field preceding or the field
+following it.
+.TP
+.I \-u
+For the default case or the
+.I \-m
+option, only output the first of a sequence of lines that compare
+equal.  For the
+.I \-c
+option, check that no pair of consecutive lines compares equal.
+.TP
+.I "+POS1 [\-POS2]"
+Specify a field within each line to use as a sorting key.  The field
+consists of the portion of the line starting at POS1 and up to (but
+not including) POS2 (or to the end of the line if POS2 is not given).
+The fields and character positions are numbered starting with 0.
+.TP
+.I "\-k POS1[,POS2]"
+An alternate syntax for specifying sorting keys.
+The fields and character positions are numbered starting with 1.
+.PP
+A position has the form \fIf\fP.\fIc\fP, where \fIf\fP is the number
+of the field to use and \fIc\fP is the number of the first character
+from the beginning of the field (for \fI+pos\fP) or from the end of
+the previous field (for \fI\-pos\fP).  The .\fIc\fP part of a position
+may be omitted in which case it is taken to be the first character in
+the field.  If the
+.I \-b
+option has been given, the .\fIc\fP part of a field specification is
+counted from the first nonblank character of the field (for
+\fI+pos\fP) or from the first nonblank character following the
+previous field (for \fI\-pos\fP).
+.PP
+A \fI+pos\fP or \fI-pos\fP argument may also have any of the option
+letters
+.I Mbdfinr
+appended to it, in which case the global ordering options are not used
+for that particular field.  The
+.I \-b
+option may be independently attached to either or both of the
+\fI+pos\fP and \fI\-pos\fP parts of a field specification, and if it
+is inherited from the global options it will be attached to both.
+If a
+.I \-n
+or
+.I \-M
+option is used, thus implying a
+.I \-b
+option, the
+.I \-b
+option is taken to apply to both the \fI+pos\fP and the \fI\-pos\fP
+parts of a key specification.  Keys may span multiple fields.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/split.1 b/usr/othersrc/public/textutils-1.3/man/man1/split.1
new file mode 100644 (file)
index 0000000..2189365
--- /dev/null
@@ -0,0 +1,69 @@
+.TH SPLIT 1L \" -*- nroff -*-
+.SH NAME
+split \- split a file into pieces
+.SH SYNOPSIS
+.B split
+[\-lines] [\-l lines] [\-b bytes[bkm]] [\-C bytes[bkm]] [\-\-lines=lines]
+[\-\-bytes=bytes[bkm]] [\-\-line-bytes=bytes[bkm]] [infile [outfile-prefix]]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR split .
+.B split
+creates one or more output files (as many as necessary) containing
+consecutive sections of the
+.IR infile ,
+or the standard input if none is given or the name `\-' is given.
+By default,
+.B split
+puts 1000 lines of the input file, or whatever is left if it is less
+than that, into each output file.
+.PP
+The output file names consist of a prefix followed by a group of
+letters, chosen so that concatenating the output files in sorted order
+by file name produces the original input file, in order.  The default
+output file name prefix is `x'.  If the
+.I outfile-prefix
+argument is given, it is used as the output file name prefix instead.
+.SS OPTIONS
+.TP
+.I "\-lines, \-l lines, \-\-lines=lines"
+Put
+.I lines
+lines of the input file into each output file.
+.TP
+.I "\-b bytes[bkm], \-\-bytes=bytes[bkm]"
+Put
+.I bytes
+bytes of the input file into each output file.
+.I bytes
+is a nonzero integer, optionally followed by one
+of the following characters to specify a different unit.
+.RS
+.IP b
+512-byte blocks.
+.IP k
+1-kilobyte blocks.
+.IP m
+1-megabyte blocks.
+.RE
+.TP
+.I "\-C bytes[bkm], \-\-line-bytes=bytes[bkm]"
+Put into each output file as many complete lines of the input file as
+is possible without exceeding
+.I bytes
+bytes.  If a line that is longer than
+.I bytes
+bytes occurs, put
+.I bytes
+bytes of it into each output file until less than
+.I bytes
+bytes of the line are left, then continue normally.
+.I bytes
+has the same format as for the
+.I \-\-bytes
+option.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/sum.1 b/usr/othersrc/public/textutils-1.3/man/man1/sum.1
new file mode 100644 (file)
index 0000000..1cf52d9
--- /dev/null
@@ -0,0 +1,40 @@
+.TH SUM 1L \" -*- nroff -*-
+.SH NAME
+sum \- checksum and count the blocks in a file
+.SH SYNOPSIS
+.B sum
+[\-rs] [\-\-sysv] [file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR sum .
+.B sum
+computes a 16-bit checksum for each named file, or the standard input
+if none are given or when a file named `\-' is given.  It prints the
+checksum for each file along with the number of blocks in the file
+(rounded up), and the file name unless no arguments were given.  By
+default, the GNU
+.B sum
+computes checksums using an algorithm that is compatible with the BSD
+.B sum
+and prints file sizes in units of 1K blocks.
+.SS OPTIONS
+.TP
+.I \-r
+Use the default (BSD compatible) algorithm.  This option is included
+for compatibility with the System V
+.BR sum .
+Unless the
+.I \-s
+option was also given, it has no effect.
+.TP
+.I "\-s, \-\-sysv"
+Compute checksums using an algorithm that is compatible with the one
+the System V
+.B sum
+uses by default
+and print file sizes in units of 512-byte blocks instead of 1K.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/tac.1 b/usr/othersrc/public/textutils-1.3/man/man1/tac.1
new file mode 100644 (file)
index 0000000..7315f55
--- /dev/null
@@ -0,0 +1,35 @@
+.TH TAC 1L \" -*- nroff -*-
+.SH NAME
+tac \- concatenate and print files in reverse
+.SH SYNOPSIS
+.B tac
+[\-br] [\-s separator] [\-\-before] [\-\-regex] [\-\-separator=separator]
+[file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR tac .
+.B tac
+copies each given file, or the standard input if none are given or
+when a file name of `-' is encountered, to the standard output with
+the order of the records reversed.  The records are separated by
+instances of a string, or a newline if none is given.  By default, the
+separator string is attached to the end of the record that it follows
+in the file.
+.SS OPTIONS
+.TP
+.I "\-b, \-\-before"
+The separator is attached to the beginning of the record that it
+precedes in the file.
+.TP
+.I "\-r, \-\-regex"
+The separator is a regular expression.
+.TP
+.I "\-s, \-\-separator separator"
+Use
+.I separator
+as the record separator.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/tail.1 b/usr/othersrc/public/textutils-1.3/man/man1/tail.1
new file mode 100644 (file)
index 0000000..1ccba60
--- /dev/null
@@ -0,0 +1,75 @@
+.TH TAIL 1L \" -*- nroff -*-
+.SH NAME
+tail \- output the last part of files
+.SH SYNOPSIS
+.B tail
+[\-c [+]N[bkm]] [\-n [+]N] [\-fqv] [\-\-bytes=[+]N[bkm]] [\-\-lines=[+]N]
+[\-\-follow] [\-\-quiet] [\-\-silent] [\-\-verbose] [file...]
+
+.B tail
+[{\-,+}Nbcfklmqv] [file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR tail .
+.B tail
+prints the last part (10 lines by default) of each given file; it
+reads from standard input if no files are given or when a filename of
+`\-' is encountered.  If more than one file is given, it prints a
+header consisting of the file's name enclosed in `==>' and `<=='
+before the output for each file.
+.PP
+The GNU
+.B tail
+can output any amount of data, unlike the Unix version, which uses a
+fixed size buffer.  It has no
+.I \-r
+option (print in reverse).  Reversing a file is really a different job
+from printing the end of a file; the BSD
+.B tail
+can only reverse files that are at most as large as its buffer, which
+is typically 32k.  A reliable and more versatile way to reverse files is
+the GNU
+.B tac
+command.
+.SS OPTIONS
+.PP
+.B tail
+accepts two option formats: the new one, in which numbers are
+arguments to the option letters, and the old one, in which a `+' or
+`\-' and optional number precede any option letters.
+.PP
+If a number (`N') starts with a `+',
+.B tail
+begins printing with the Nth item from the start of each file, instead
+of from the end.
+.TP
+.I "\-c N, \-\-bytes N"
+Tail by N bytes.  N is a nonzero integer, optionally followed by one
+of the following characters to specify a different unit.
+.RS
+.IP b
+512-byte blocks.
+.IP k
+1-kilobyte blocks.
+.IP m
+1-megabyte blocks.
+.RE
+.TP
+.I "\-f, \-\-follow"
+Loop forever trying to read more characters at the end of the file, on
+the assumption that the file is growing.  Ignored if reading from a
+pipe.  Cannot be used if more than one file is given.
+.TP
+.I "\-l, \-n N, \-\-lines N"
+Tail by N lines.
+.TP
+.I "\-q, \-\-quiet, \-\-silent"
+Never print filename headers.
+.TP
+.I "\-v, \-\-verbose"
+Always print filename headers.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/tr.1 b/usr/othersrc/public/textutils-1.3/man/man1/tr.1
new file mode 100644 (file)
index 0000000..4ef404d
--- /dev/null
@@ -0,0 +1,277 @@
+.TH TR 1L \" -*- nroff -*-
+.SH NAME
+tr \- translate or delete characters
+.SH SYNOPSIS
+.B tr
+[\-cst] [\-\-complement] [\-\-squeeze\-repeats]
+[\-\-truncate\-set1] string1 string2
+.br
+.B tr
+{\-s,\-\-squeeze\-repeats} [\-c] [\-\-complement] string1
+.br
+.B tr
+{\-d,\-\-delete} [\-c] string1
+.br
+.B tr
+{\-d,\-\-delete} {\-s,\-\-squeeze\-repeats} [\-c] [\-\-complement]
+string1 string2
+.SH DESCRIPTION
+.PP
+This manual page documents the GNU version of
+.B tr.
+.B tr
+copies the standard input to the standard output,
+performing one of the following operations:
+.IP
+\(bu translate, and optionally squeeze repeated characters in the result
+.br
+\(bu squeeze repeated characters
+.br
+\(bu delete characters
+.br
+\(bu delete characters, then squeeze repeated characters from the result.
+.PP
+The \fIstring1\fP and (if given) \fIstring2\fP arguments define
+ordered sets of characters, referred to below as set1 and set2.  These
+sets are the characters of the input that
+.B tr
+operates on.  The
+.I \-\-complement
+(\fI\-c\fP) option replaces set1 with its complement (all of the
+characters that are not in set1).
+.SS "SPECIFYING SETS OF CHARACTERS"
+.PP
+The format of the \fIstring1\fP and \fIstring2\fP arguments resembles
+the format of regular expressions; however, they are not regular
+expressions, only lists of characters.  Most characters simply
+represent themselves in these strings, but the strings can contain the
+shorthands listed below, for convenience.  Some of them can be used
+only in \fIstring1\fP or \fIstring2\fP, as noted below.
+.PP
+Backslash excapes.  A backslash followed by a character not listed
+below causes an error message.
+.IP \ea
+Control-G.
+.IP \eb
+Control-H.
+.IP \ef
+Control-L.
+.IP \en
+Control-J.
+.IP \er
+Control-M.
+.IP \et
+Control-I.
+.IP \ev
+Control-K.
+.IP \eooo
+The character with the value given by \fIooo\fP, which is 1 to 3 octal
+digits.
+.IP \e\e
+A backslash.
+.PP
+Ranges.  The notation `\fIm\fP\-\fIn\fP' expands to all of the
+characters from \fIm\fP through \fIn\fP, in ascending order.  \fIm\fP
+should collate before \fIn\fP; if it doesn't, an error results.  As an
+example, `0\-9' is the same as `0123456789'.  Ranges can optionally be
+enclosed in square brackets, which has no effect but is supported for
+compatibility with historical System V versions of
+.BR tr .
+.PP
+Repeated characters.  The notation `[\fIc\fP*\fIn\fP]' in
+\fIstring2\fP expands to \fIn\fP copies of character \fIc\fP.  Thus,
+`[y*6]' is the same as `yyyyyy'.  The notation `[\fIc\fP*]' in
+\fIstring2\fP expands to as many copies of \fIc\fP as are needed to
+make set2 as long as set1.  If \fIn\fP begins with a 0, it is
+interpreted in octal, otherwise in decimal.
+.PP
+Character classes.  The notation `[:\fIclass-name\fP:]' expands to all
+of the characters in the (predefined) class named \fIclass-name\fP.
+The characters expand in no particular order, except for the `upper'
+and `lower' classes, which expand in ascending order.
+When the
+.I \-\-delete
+(\fI\-d\fP) and
+.I \-\-squeeze\-repeats
+(\fI\-s\fP) options are both given, any character class can be used in
+\fIstring2\fP.  Otherwise, only the character classes `lower' and
+`upper' are accepted in \fIstring2\fP, and then only if the
+corresponding character class (`upper' and `lower', respectively) is
+specified in the same relative position in \fIstring1\fP.  Doing this
+specifies case conversion.  The class names are given below; an error
+results when an invalid class name is given.
+.IP alnum
+Letters and digits.
+.IP alpha
+Letters.
+.IP blank
+Horizontal whitespace.
+.IP cntrl
+Control characters.
+.IP digit
+Digits.
+.IP graph
+Printable characters, not including space.
+.IP lower
+Lowercase letters.
+.IP print
+Printable characters, including space.
+.IP punct
+Punctuation characters.
+.IP space
+Horizontal or vertical whitespace.
+.IP upper
+Uppercase letters.
+.IP xdigit
+Hexadecimal digits.
+.PP
+Equivalence classes.  The syntax `[=\fIc\fP=]' expands to all of the
+characters that are equivalent to \fIc\fP, in no particular order.
+Equivalence classes are a recent invention intended to support
+non-English alphabets.  But there seems to be no standard way to
+define them or determine their contents.  Therefore, they are not
+fully implemented in GNU
+.BR tr ;
+each character's equivalence class consists only of that character,
+which makes this a useless construction currently.
+.SS TRANSLATING
+.PP
+.B tr
+performs translation when \fIstring1\fP and \fIstring2\fP are both
+given and the \-\-delete (\fI\-d\fP) option is not given.
+.B tr
+translates each character of its input that is in set1 to the
+corresponding character in set2.  Characters not in set1 are passed
+through unchanged.  When a character appears more than once in set1
+and the corresponding characters in set2 are not all the same, only
+the final one is used.  For example, these two commands are
+equivalent:
+.RS
+.nf
+tr aaa xyz
+tr a z
+.fi
+.RE
+.PP
+A common use of
+.B tr
+is to convert lowercase characters to uppercase.  This can be done in
+many ways.  Here are three of them:
+.RS
+.nf
+tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
+tr a-z A-Z
+tr '[:lower:]' '[:upper:]'
+.fi
+.RE
+.PP
+When
+.B tr
+is performing translation, set1 and set2 should normally have the same
+length.  If set1 is shorter than set2, the extra characters at the end
+of set2 are ignored.
+.PP
+On the other hand, making set1 longer than set2 is not portable;
+POSIX.2 says that the result is undefined.  In this situation, the BSD
+.B tr
+pads set2 to the length of set1 by repeating the last character of
+set2 as many times as necessary.  The System V
+.B tr
+truncates set1 to the length of set2.
+.PP
+By default, GNU
+.B tr
+handles this case like the BSD
+.B tr
+does.  When the \-\-truncate\-set1 (\fI\-t\fP) option is given, GNU
+.B tr
+handles this case like the System V
+.B tr
+instead.  This option is ignored for operations other than
+translation.
+.PP
+Acting like the System V
+.B tr
+in this case breaks the relatively common BSD idiom:
+.RS
+.nf
+tr -cs A-Za-z0-9 '\e012'
+.fi
+.RE
+because it converts only zero bytes (the first element in
+the complement of set1), rather than all non-alphanumerics, to
+newlines.
+.SS "SQUEEZING REPEATS AND DELETING"
+.PP
+When given just the \-\-delete (\fI\-d\fP) option,
+.B tr
+removes any input characters that are
+in set1.
+.PP
+When given just the \-\-squeeze\-repeats (\fI\-s\fP) option,
+.B tr
+replaces each input sequence of a repeated character that is in set1
+with a single occurrence of that character.
+.PP
+When given both the \-\-delete and the \-\-squeeze\-repeats options,
+.B tr
+first performs any deletions using set1, then squeezes repeats from
+any remaining characters using set2.
+.PP
+The \-\-squeeze\-repeats option may also be used when translating, in
+which case
+.B tr
+first peforms translation, then squeezes repeats from any remaining
+characters using set2.
+.PP
+Here are some examples to illustrate various combinations of options:
+.PP
+Remove all zero bytes:
+.RS
+tr -d '\e000'
+.RE
+.PP
+Put all words on lines by themselves.  This converts all
+non-alphanumeric characters to newlines, then squeezes each string of
+repeated newlines into a single newline:
+.RS
+tr -cs '[a-zA-Z0-9]' '[\en*]'
+.RE
+.PP
+Convert each sequence of repeated newlines to a single newline:
+.RS
+tr -s '\en'
+.RE
+.SS "WARNING MESSAGES"
+.PP
+Setting the environment variable POSIXLY_CORRECT turns off several
+warning and error messages, for strict compliance with POSIX.2.  The
+messages normally occur in the following circumstances:
+.PP
+1.  When the
+.I \-\-delete
+option is given but
+.I \-\-squeeze\-repeats
+is not, and \fIstring2\fP is given, GNU
+.B tr
+by default prints a usage message and exits, because \fIstring2\fP would
+not be used.  The POSIX specification says that
+\fIstring2\fP must be ignored in this case.  Silently ignoring
+arguments is a bad idea.
+.PP
+2.  When an ambiguous octal escape is given.  For example, \e400 is
+actually \e40 followed by the digit 0, because the value 400 octal
+does not fit into a single byte.
+.PP
+Note that GNU
+.B tr
+does not provide complete BSD or System V compatibility.  For example,
+there is no option to disable interpretation of the POSIX constructs
+[:alpha:], [=c=], and [c*10].  Also, GNU
+.B tr
+does not delete zero bytes automatically, unlike traditional UNIX
+versions, which provide no way to preserve zero bytes.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/unexpand.1 b/usr/othersrc/public/textutils-1.3/man/man1/unexpand.1
new file mode 100644 (file)
index 0000000..2b0ffbe
--- /dev/null
@@ -0,0 +1,45 @@
+.TH UNEXPAND 1L \" -*- nroff -*-
+.SH NAME
+unexpand \- convert spaces to tabs
+.SH SYNOPSIS
+.B unexpand
+[\-tab1[,tab2[,...]]] [\-t tab1[,tab2[,...]]] [\-a]
+[\-\-tabs=tab1[,tab2[,...]]] [\-\-all] [file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR unexpand .
+.B unexpand
+writes the contents of each given file, or the standard input if
+none are given or when a file named `\-' is given, to the standard
+output, with strings of two or more space or tab characters converted
+to as many tabs as possible followed by as many spaces as are needed.
+By default,
+.B unexpand
+converts only initial spaces and tabs (those that precede all non
+space or tab characters) on each line.  It preserves
+backspace characters in the output; they decrement the column count
+for tab calculations.  By default, tabs are set at every 8th column.
+.SS OPTIONS
+.TP
+.I "\-, \-t, \-\-tabs tab1[,tab2[,...]]"
+If only one tab stop is given, set the tabs \fItab1\fP spaces apart
+instead of the default 8.  Otherwise, set the tabs at columns
+\fItab1\fP, \fItab2\fP, etc. (numbered from 0) and leave spaces and
+tabs beyond the tabstops given unchanged.  If the tabstops are
+specified with the
+.I \-t
+or
+.I \-\-tabs
+option, they can be separated by blanks as well as by commas.
+This option implies the
+.I \-a
+option.
+.TP
+.I "\-a, \-\-all"
+Convert all strings of two or more spaces or tabs, not just initial
+ones, to tabs.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/uniq.1 b/usr/othersrc/public/textutils-1.3/man/man1/uniq.1
new file mode 100644 (file)
index 0000000..c3db404
--- /dev/null
@@ -0,0 +1,59 @@
+.TH UNIQ 1L \" -*- nroff -*-
+.SH NAME
+uniq \- remove duplicate lines from a sorted file
+.SH SYNOPSIS
+.B uniq
+[\-cdu] [\-f skip-fields] [\-s skip-chars] [\-w check-chars]
+[\-#skip-fields] [+#skip-chars] [\-\-count] [\-\-repeated] [\-\-unique]
+[\-\-skip-fields=skip-fields] [\-\-skip-chars=skip-chars]
+[\-\-check-chars=check-chars] [infile] [outfile]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR uniq .
+.B uniq
+prints the unique lines in a sorted file, discarding all but one of a
+run of matching lines.  It can optionally show only lines that appear
+exactly once, or lines that appear more than once.
+.B uniq
+requires sorted input because it compares only consecutive lines.
+.PP
+If the output file is not specified,
+.B uniq
+writes to the standard output.  If the input file is not specified, it
+reads from the standard input.
+.SS OPTIONS
+.TP
+.I "\-u, \-\-unique"
+Only print unique lines.
+.TP
+.I "\-d, \-\-repeated"
+Only print duplicate lines.
+.TP
+.I "\-c, \-\-count"
+Print the number of times each line occurred along with the line.
+.TP
+.I "\-, \-f, \-\-skip-fields=number"
+In this option, \fInumber\fP is an integer representing the number of
+fields to skip over before checking for uniqueness.  The first
+\fInumber\fP fields, along with any blanks found before \fInumber\fP
+fields is reached, are skipped over and not counted.  Fields are
+defined as a strings of non-space, non-tab characters, that are
+separated from each other by spaces and tabs.
+.TP
+.I "\-\-, \-s, +skip-chars=number"
+In this option, \fInumber\fP is an integer represent the number of
+characters to skip over before checking for uniqueness.  The first
+\fInumber\fP characters, along with any blanks found before
+\fInumber\fP characters is reached, are skipped over and not counted.
+If you use both the field and character skipping options, fields are
+skipped over first.
+.TP
+.I "\-w, +check-chars=number"
+Specify the number of characters to compare in the lines, after
+skipping any specified fields and characters.  Normally the entire
+rest of the lines are compared.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.
diff --git a/usr/othersrc/public/textutils-1.3/man/man1/wc.1 b/usr/othersrc/public/textutils-1.3/man/man1/wc.1
new file mode 100644 (file)
index 0000000..6345114
--- /dev/null
@@ -0,0 +1,41 @@
+.TH WC 1L \" -*- nroff -*-
+.SH NAME
+wc \- print the number of bytes, words, and lines in files
+.SH SYNOPSIS
+.B wc
+[\-clw] [\-\-bytes] [\-\-chars] [\-\-lines] [\-\-words] [file...]
+.SH DESCRIPTION
+This manual page
+documents the GNU version of
+.BR wc .
+.B wc
+counts the number of bytes, whitespace-separated words, and newlines
+in each given file, or the standard input if none are given or when a
+file named `\-' is given.  It prints one line of counts for each file,
+and if the file was given as an argument, it prints the filename
+following the counts.  If more than one filename is given,
+.B wc
+prints a final line containing the cumulative counts, with the
+filename `total'.  The counts are printed in the order: lines, words,
+bytes.
+.PP
+By default,
+.B wc
+prints all three counts.  Options can specify that only certain counts
+be printed.  Options do not undo others previously given, so
+.BI wc " \-\-bytes \-\-words"
+prints both the byte counts and the word counts.
+.SS OPTIONS
+.TP
+.I "\-c, \-\-bytes, \-\-chars"
+Print only the byte counts.
+.TP
+.I "\-w, \-\-words"
+Print only the word counts.
+.TP
+.I "\-l, \-\-lines"
+Print only the newline counts.
+.PP
+The long-named options can be introduced with `+' as well as `\-\-',
+for compatibility with previous releases.  Eventually support for `+'
+will be removed, because it is incompatible with the POSIX.2 standard.