FMT(1) User Commands FMT(1)NAME
fmt - simple optimal text formatter
SYNOPSIS
fmt [-WIDTH] [OPTION]... [FILE]...
DESCRIPTION
Reformat each paragraph in the FILE(s), writing to standard output. The option -WIDTH is an abbreviated form of --width=DIGITS.
Mandatory arguments to long options are mandatory for short options too.
-c, --crown-margin
preserve indentation of first two lines
-p, --prefix=STRING
reformat only lines beginning with STRING, reattaching the prefix to reformatted lines
-s, --split-only
split long lines, but do not refill
-t, --tagged-paragraph
indentation of first line different from second
-u, --uniform-spacing
one space between words, two after sentences
-w, --width=WIDTH
maximum line width (default of 75 columns)
-g, --goal=WIDTH
goal width (default of 93% of width)
--help display this help and exit
--version
output version information and exit
With no FILE, or when FILE is -, read standard input.
GNU coreutils online help: <http://www.gnu.org/software/coreutils/> Report fmt translation bugs to <http://translationproject.org/team/>
AUTHOR
Written by Ross Paterson.
COPYRIGHT
Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for fmt is maintained as a Texinfo manual. If the info and fmt programs are properly installed at your site, the
command
info coreutils 'fmt invocation'
should give you access to the complete manual.
GNU coreutils 8.22 June 2014 FMT(1)
Check Out this Related Man Page
FMT(1) FSF FMT(1)NAME
fmt - simple optimal text formatter
SYNOPSIS
fmt [-DIGITS] [OPTION]... [FILE]...
DESCRIPTION
Reformat each paragraph in the FILE(s), writing to standard output. If no FILE or if FILE is `-', read standard input.
Mandatory arguments to long options are mandatory for short options too.
-c, --crown-margin
preserve indentation of first two lines
-p, --prefix=STRING
combine only lines having STRING as prefix
-s, --split-only
split long lines, but do not refill
-t, --tagged-paragraph
indentation of first line different from second
-u, --uniform-spacing
one space between words, two after sentences
-w, --width=NUMBER
maximum line width (default of 75 columns)
--help display this help and exit
--version
output version information and exit
In -wNUMBER, the letter `w' may be omitted.
AUTHOR
Written by Ross Paterson.
REPORTING BUGS
Report bugs to <bug-coreutils@gnu.org>.
COPYRIGHT
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
The full documentation for fmt is maintained as a Texinfo manual. If the info and fmt programs are properly installed at your site, the
command
info fmt
should give you access to the complete manual.
fmt (coreutils) 4.5.3 February 2003 FMT(1)
Hey, I'm trying to read printf(3) and seems I need to use the * WIDTH
but I'm not quite sure how to go about it.
there needs to be 3 fields per line, the lines read in from file looks like this:
JUICE - APPLE:JUST JUICE:7
MILK - CHOCOLATE:BREAKA:7
this needs to be output backwards with... (6 Replies)
Hi all,
The following lines are taken from a long paragraph:
Labels of output orbitals: RY* RY* RY* RY* RY* RY*
1\1\GINC-COMPUTE-1-3\SP\UB3LYP\6-31G\C2H5Cr1O1(1+,5)\LIUZHEN\19-Jan-20
10\0\\# ub3lyp/6-31G pop=(nbo,savenbo) gfprint\\E101GECP\\1,5\O,0,-1.7
... (1 Reply)
Hello,
I have file which needs to be splitted into multiple line with each line holding 80 bytes.
Im using the fmt command as
fmt -w 80 {filename} > {out filename}
but getting the error
fmt: Too many characters in a word.
Thanks
Use code tags, ty. (7 Replies)
Hi,
I am a professional in writing shell scripts,
and I am using a one-space indentation like this
for i in file1 file2
do
if
then
echo "$i"
fi
done
so very deeply nested stuff still fits on my screen.
At release time I usually double the indentation via
sed 's/^ */&&/'
to make... (8 Replies)