Read more

Line wrap text from a Ubuntu Linux terminal

Henning Koch
September 13, 2011Software engineer at makandra GmbH

You can use fold:

fold -sw 60
Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

You can now paste your texts. fold will echo them back, word-wrapped after 60 columns. Exit with Ctrl+C or Ctrl+D.

You can also use files for input and output:

fold -sw 60 input.txt > output.txt
Posted by Henning Koch to makandra dev (2011-09-13 15:22)