0

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?

1 Answer 1

1

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 :))

You must log in to answer this question.