fold -w 80 file.txt

Category: File Viewing & Editing

fold -w 80 file.txt

Wrap long lines to fit within 80 characters

Inserts line breaks so that no line in the output is longer than 80 characters. Useful for terminal display.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.