Format Text Files
If you’ve ever written something in plain text (e.g., a README file), you know that formatting can be extremely troublesome. This is especially true when editing. Thankfully, *nix systems provide a useful tool called fmt.
The fmt command simply reformats a file and writes to stdout. I usually use fmt to unify my line length.
$ fmt -70 input.txt > output.txt
See the man page for more info.