🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix
Article #295

Re: Need help on a Unix utility to format text.

#295
From: Jean-Pierre Radley
Date: Fri, 26 Oct 1990 16:53
17 lines
1212 bytes
In article <2221@megadon.UUCP> maxc1222@ucselx.sdsu.edu (Generic Account 1222) writes:
>I need some help!! I'm am looking for a Unix utility that will get
>standard input and format it to 72 columns max. I looked at 'fmt'
>and it was putting the word which fell on the 72nd column on the
>following line.  I need something which will break any word
>at the 72nd column regardless.

Cheap and dirty approach:

Try running nroff on your input. Without any macros defined at all, it seems to
default to right-justified 72 column text.

Two consecutive line-feeds in the input tell it to start a new paragraph.
It also will issue line-feeds to come to some multiple of 66 lines.
-- 

 Jean-Pierre Radley          HIGH-Q	     jpr@jpradley	CIS: 72160,1341
Technical Details
Message-ID: <2237@megadon.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!usc!apple!altos!megadon!clp
References: <2221@megadon.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!usc!apple!altos!megadon!clp
From: jpr@hombre.masa.com (Jean-Pierre Radley)
Newsgroups: comp.unix
Subject: Re: Need help on a Unix utility to format text.
Message-ID: <2237@megadon.UUCP>
Date: 26 Oct 90 16:53:43 GMT
References: <2221@megadon.UUCP>
Sender: clp@megadon.UUCP
Reply-To: uunet!hombre.masa.com!jpradley!jpr (Jean-Pierre Radley)
Organization: High-Q
Lines: 17
Approved: clp@megadon.UUCP