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 online protection

Rails professionals since 2007

Our laser focus on a single technology has made us a leader in this space. Need help?

  • We build a solid first version of your product
  • We train your development team
  • We rescue your project in trouble
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)