Linux/fmt
< Linux
fmt and pr
Reformat a text file for printing
# format file for printing fmt -60 book # reformat with 60 characters per line (wrap at...) pr # format file for printing (with headers)
Installation:
yum install coreutils
Don't refill and max 120 character width:
fmt file.txt -s -w 120 > output.txt