|
Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!
User Commands fmt(1)
NAME
fmt - simple text formatters
SYNOPSIS
fmt [-cs] [-w width | -width] [inputfile...]
DESCRIPTION
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 inputfiles listed as 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 nor split lines beginning
with a `.' (dot), for compatibility with
nroff(1). Nor does it fill or split a set of contiguous
non-blank lines which is determined to be a mail header, the
first line of which must begin 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(1).
The vi command:
!}fmt
reformats the text between the cursor location and the end
of the paragraph.
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 width | -width Fill output lines to up to width
columns.
SunOS 5.10 Last change: 9 May 1997 1
User Commands fmt(1)
OPERANDS
inputfile Input file.
ENVIRONMENT VARIABLES
See environ(5) for a description of the LC_CTYPE environment
variable that affects the execution of fmt.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | SUNWcsu |
|_____________________________|_____________________________|
SEE ALSO
nroff(1), vi(1), attributes(5), environ(5)
NOTES
The -width option is acceptable for BSD compatibility, but
it may go away in future releases.
SunOS 5.10 Last change: 9 May 1997 2
Man(1) output converted with
man2html and wrapped by fishsponge
This page was generated on Wed Sep 12 11:24:41 GMT 2007
|
Your favourite pages:
No pages logged yet. Trying to save cookie... Top 10 most popular pages:
sqlite3 man page (5334 hits) (openSUSE 10.2)
svn man page (5208 hits) (FreeBSD 6.2)
adv_cap_autoneg man page (4870 hits) (Solaris 10 11_06)
CPAN man page (4607 hits) (Suse Linux 10.1)
ssh man page (4342 hits) (Suse Linux 10.1)
ssh-socks5-proxy-connect man page (2874 hits) (Solaris 10 11_06)
netcat man page (2717 hits) (Suse Linux 10.1)
pprosetup man page (2487 hits) (Solaris 10 11_06)
startproc man page (2471 hits) (Suse Linux 10.1)
signal man page (2406 hits) (Suse Linux 10.1)
|