Formatting text in Unix

There’s a little bit of formatting I want to do on some text. The first thing I am trying to do is limiting the number of characters per line to 20 characters. Next, I want to have all the whitespace of more than one space, be switched to only one space. Finally, if I want to then display this text one screen at a time, would I use less?

Source: unix

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.