[TriLUG] word wrap tool

Nathan Conrad conrad at bungled.net
Sat Jul 20 13:14:48 EDT 2002


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

--
Nathan J. Conrad                    https://bungled.net
101 Cynthia Drive / Chapel Hill, NC 27514-6614
GPG: F4FC 7E25 9308 ECE1 735C  0798 CE86 DA45 9170 3112

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://www.trilug.org/pipermail/trilug/attachments/20020720/9d256ad5/attachment.pgp>


More information about the TriLUG mailing list