[TriLUG] word wrap tool

Adrian Likins alikins at redhat.com
Sat Jul 20 21:46:26 EDT 2002


On Sat, Jul 20, 2002 at 01:45:20PM -0400, Mike Mueller wrote:
> 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
> 
	`fmt` will also do this.


Adrian



More information about the TriLUG mailing list