fmt-simple text formatters

 <  Day Day Up  >  

fmt ”simple text formatters

 fmt [ c ] [ s ] [ w width  width ] [ inputfile... ] 

fmt 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 input files listed as arguments. If none are given, fmt formats text from the standard input.

Example A.28.
 fmt -c -w45 letter 

EXPLANATION

Formats letter . The “c switch preserves the indentation of the first two lines within the paragraph and aligns the left margin of each subsequent line with that of the second line. The “w switch fills the output line of up to 45 columns .

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net