hbase

heirloom base
git clone git://git.2f30.org/hbase
Log | Files | Refs | README

fmt.1 (4121B)


      1 .\" Copyright (c) 1980 Regents of the University of California.
      2 .\" All rights reserved.  The Berkeley software License Agreement
      3 .\" specifies the terms and conditions for redistribution.
      4 .\"
      5 .\" Copyright (c) 1980, 1990, 1993
      6 .\"     The Regents of the University of California.  All rights reserved.
      7 .\" Copyright for changes (c) 2003
      8 .\"     Gunnar Ritter.  All rights reserved.
      9 .\"
     10 .\" Redistribution and use in source and binary forms, with or without
     11 .\" modification, are permitted provided that the following conditions
     12 .\" are met:
     13 .\" 1. Redistributions of source code must retain the above copyright
     14 .\"    notice, this list of conditions and the following disclaimer.
     15 .\" 2. Redistributions in binary form must reproduce the above copyright
     16 .\"    notice, this list of conditions and the following disclaimer in the
     17 .\"    documentation and/or other materials provided with the distribution.
     18 .\" 3. All advertising materials mentioning features or use of this software
     19 .\"    must display the following acknowledgement:
     20 .\"     This product includes software developed by the University of
     21 .\"     California, Berkeley and its contributors.
     22 .\"     This product includes software developed by Gunnar Ritter
     23 .\"     and his contributors.
     24 .\" 4. Neither the name of the University nor the names of its contributors
     25 .\"    may be used to endorse or promote products derived from this software
     26 .\"    without specific prior written permission.
     27 .\"
     28 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS '\fIAS IS\fR' AND
     29 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     30 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     31 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     32 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     33 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     34 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     35 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     36 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     37 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     38 .\" SUCH DAMAGE.
     39 .\"
     40 .\"	from 4.3BSD fmt.1	6.1 (Berkeley) 4/29/85
     41 .\"
     42 .\" from FMT 1 "April 29, 1985"
     43 .TH FMT 1 "5/6/03" "Heirloom Toolchest" "User Commands"
     44 .SH NAME
     45 fmt \- simple text formatter
     46 .SH SYNOPSIS
     47 \fBfmt\fR [\fB\-c\fR] [\fB\-s\fR] [\fB\-w\ \fIwidth\fR | \fB\-\fIwidth\fR]
     48 [\fIfile\ ...\fR]
     49 .SH DESCRIPTION
     50 .I Fmt
     51 is a simple text formatter which reads the concatenation of input
     52 files (or standard input if none are given) and produces on
     53 standard output a version of its input with lines as close to
     54 72 characters long as possible.  The spacing at the beginning
     55 of the input lines is preserved in the output, as are blank lines
     56 and interword spacing.
     57 .PP
     58 .I Fmt
     59 is meant to format mail messages prior to sending, but may also be useful
     60 for other simple tasks.
     61 For instance,
     62 within visual mode of the
     63 .I ex
     64 editor (e.g.
     65 .IR vi )
     66 the command
     67 .sp
     68         !}fmt
     69 .sp
     70 will reformat a paragraph,
     71 evening the lines.
     72 .PP
     73 The following options can be used
     74 to alter the behavior of
     75 .IR fmt :
     76 .TP
     77 .B \-c
     78 Select crown margin mode
     79 (for tagged paragraphs).
     80 Paragraphs are separated by empty lines.
     81 The indenting of the first and second line
     82 of each paragraph is preserved,
     83 and following lines are indented
     84 like the second line.
     85 .TP
     86 .B \-s
     87 Split lines,
     88 but do not join lines
     89 (i.\|e. preserve any newline character
     90 found in the input file).
     91 .TP
     92 \fB\-w\fI\ width\fR
     93 Set the length of generated output lines to
     94 .I width
     95 characters.
     96 .SH "ENVIRONMENT VARIABLES"
     97 .TP
     98 .BR LANG ", " LC_ALL
     99 See
    100 .IR locale (7).
    101 .TP
    102 .B LC_CTYPE
    103 Determines the mapping of bytes to characters,
    104 the width of characters,
    105 and the set of word-separating characters.
    106 .SH "SEE ALSO"
    107 nroff(1),
    108 mailx(1),
    109 vi(1)
    110 .SH NOTES
    111 The program was designed to be simple and fast \- for more complex
    112 operations, the standard text processors are likely to be more appropriate.
    113 .PP
    114 The original version of this program was written by
    115 Kurt Shoens.