Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a Windows command line tool to process text into fixed width paragraphs.

The source text file will just be a few pages of text in paragraphs.

I want to convert it to fixed width paragraphs, so that it still reads OK when the user opens it in Notepad without word wrap.

Any suggestions?

share|improve this question
add comment

1 Answer

You're looking for the *nix tool fold. It's availible in Cygwin, if you already have it, or UnxUtils, and probably some other ports I'm unaware of.

Usage like:

fold -4 file.txt

to fold into 4-character lines. (Outputs to Standard Output, so don't forget to redirect to another file :))

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.