[TriLUG] word wrap tool
Mike Mueller
mjm-58 at mindspring.com
Sat Jul 20 13:45:20 EDT 2002
On Saturday 20 July 2002 13:14, Nathan Conrad reputedly wrote:
> On Sat, Jul 20, 2002 at 12:53:59PM -0400, Mike Mueller wrote:
> > I dumped a Word document to txt in StarOffice. There's no word wrapping
> > that I can find.
> >
> > A. Can someone point out the word wrap feature in SO 5.1?
> > B. Can someone recommend a tool (wrap-1.0.0 at ibiblo is a brute force
> > wrapper; it does not know about breaking at whitespace or hyphenating)
>
> The standard UNIX utility `fold' will wrap text documents for you. It
> does not know about hyphenating, but can be configured to only wrap at
> whitespace. Use it like so:
>
> fold -s < unwrapped.txt > wrapped.txt
>
> The -s makes it wrap at spaces.
>
> -Nathan
Thanks. I knew there had to be something like that.
--
m
More information about the TriLUG
mailing list