Unix and Linux Discussions Tagged with lines |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
22,556 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
12,779 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
15,155 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
13,859 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
4,128 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
8,994 |
UNIX for Beginners Questions & Answers |
|
|
|
13 |
9,859 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
6,078 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
16,693 |
Shell Programming and Scripting |
|
|
|
5 |
16,224 |
Shell Programming and Scripting |
|
|
|
1 |
3,108 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
16,540 |
Shell Programming and Scripting |
|
|
|
6 |
3,792 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
9,034 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
14,349 |
Programming |
|
|
|
2 |
2,641 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
7,559 |
Shell Programming and Scripting |
|
|
|
1 |
10,358 |
Shell Programming and Scripting |
|
|
|
1 |
8,457 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
6,937 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
8,044 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
6,921 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
5,043 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
3,551 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,319 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
6,449 |
Shell Programming and Scripting |
|
|
|
2 |
4,365 |
Shell Programming and Scripting |
|
|
|
6 |
10,334 |
Shell Programming and Scripting |
|
|
|
1 |
5,954 |
Shell Programming and Scripting |
|
|
|
3 |
8,308 |
Shell Programming and Scripting |
|
|
|
4 |
5,377 |
Shell Programming and Scripting |
|
|
|
5 |
4,221 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
4,968 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
1,847 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,599 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,344 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,768 |
UNIX for Beginners Questions & Answers |
|
|
|
18 |
5,679 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
2,299 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
8,203 |
UNIX for Beginners Questions & Answers |
fmt(1) General Commands Manual fmt(1)
NAME
fmt - format text
SYNOPSIS
width] [file...]
DESCRIPTION
The 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 width option. The default width is 72. concatenates the arguments. If none are given, formats text from the standard input.
Blank lines are preserved in the output, as is the spacing between words. does not fill lines beginning with a period for compatibility
with Nor does it fill lines starting with
Indentation is preserved in the output and input lines with differing indentation are not joined (unless is used).
can also be used as an in-line text filter for the command:
reformats the text between the cursor location and the end of the paragraph.
Options
recognizes the following options:
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.
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.
Fill output lines to up to
width columns.
WARNINGS
The width option is acceptable for BSD compatibility, but it may go away in future releases.
SEE ALSO
nroff(1), vi(1).
fmt(1)