*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> fmt (1)              
Title
Content
Arch
Section
 

Contents


 fmt(1)                                                               fmt(1)




 NAME    [Toc]    [Back]
      fmt - format text

 SYNOPSIS    [Toc]    [Back]
      fmt [-cs] [-w width] [file...]

 DESCRIPTION    [Toc]    [Back]
      The fmt command is a simple text formatter that fills and joins lines
      to produce output lines of (up to) the number of characters specified
      in the -w width option.  The default width is 72.  fmt concatenates
      the file arguments.  If none are given, fmt formats text from the
      standard input.

      Blank lines are preserved in the output, as is the spacing between
      words.  fmt does not fill lines beginning with a period (.), for
      compatibility with nroff.  Nor does it fill lines starting with From:.

      Indentation is preserved in the output and input lines with differing
      indentation are not joined (unless -c is used).

      fmt can also be used as an in-line text filter for vi; the vi command:

           !}fmt

      reformats the text between the cursor location and the end of the
      paragraph.

    Options    [Toc]    [Back]
      fmt recognizes the following options:

           -c    Crown margin mode.  Preserve the indentation of the first
                 two lines within a paragraph and align the left margin of
                 each subsequent line with that of the second line.  This is
                 useful for tagged paragraphs.

           -s    Split lines only.  Do not join short lines to form longer
                 ones.  This prevents sample lines of code, and other such
                 formatted text, from being unduly combined.

           -w    Fill output lines to up to width columns.

 WARNINGS    [Toc]    [Back]
      The -w width option is acceptable for BSD compatibility, but it may go
      away in future releases.

 SEE ALSO    [Toc]    [Back]
      nroff(1), vi(1).


 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
DXmCvtCStoOS Tru64 Converts a compound string to an operatingsystem specific format. Currently uses text format.
DXmCvtCStoFC Tru64 Converts a compound string to a file-compatible format string. Currently uses text format.
fspec IRIX format specification in text files
neqn HP-UX format mathematical text for nroff
fspec HP-UX format specification in text files
newform IRIX change the format of a text file
pdftotext Linux Portable Document Format (PDF) to text converter (version 1.00)
m2ps Tru64 Converts text in Mule internal code to PostScript format
XmMapSegmentEncoding HP-UX A compound string function that returns the compound text encoding format associated with the specified font l
XmMapSegmentEncoding Tru64 A compound string function that returns the compound text encoding format associated with the specif...
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service