🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.text
Article #1097

Re: Use of ``vi'' for business office word-processing

#1097
From: Jay Batson
Date: Fri, 19 Sep 1986 15:01
55 lines
2974 bytes
There has been some discussion about merging a form letter
with a name and address.  We've seen discussions about using
commercial WP packages with databases, and recently, a shell
script to read a data file.

Well, I recommend Towers, 3B2's, and other such boxes to
businesses, and teach them vi/nroff.  And as for merging
stuff, has anybody taken the time to read the 'nroff' paper
out of the 'papers' part of the UNIX manuals?  It describes a
nifty call named
.rd <arg>
which will accomplish the merge.  How you say?  Easy.  Put the
.rd
in your file where you want the name, address, etc. to go.
Then nroff the document.  If you don't provide a redirected
standard input, nroff will prompt you with a bell, or <arg> if
you provided one, and you simply type in the name and address
you want, ending with an extra carriage return (e.g. blank
line).  When it reads the extra <cr>, it proceeds with the
rest of the document.  Of course, you might wish to proceed the
.rd
with a
.na
.nf
and follow with whatever adjusting you want afterward.

Ok, so what about doing this on 100 form letters?  Simple.
Put the names and addresses in a file, seperating each set of
names/addresses with a blank line, and use this line for formatting:
nroff -m(package) form.letter < names.file > output.file
and you're off.  One thing - at the end of the data file, be
sure to put a blank line below the last name, and add a
.ex
on the next line.  That way, nroff will stop looking for more
data, and '.ex(it)'.

Notice that either typing things on the std input, or
providing redirected data will allow you to use as many lines
for any single name/address as you want, and nroff takes the
proper formatting in stride.

So tell me again why we shouldn't recommend vi/nroff?  You
mean _no_ other WP packages use dot commands, and secretaries
aren't smart enough to know a couple of dozen such commands?
Gee, I'm glad I don't have your secretary.

--------

"Stop it!! Stop it now.  This is getting silly again, and this silliness
has _got_ to stop.  Go on to the next sketch.  Go on.  Turn this camera o    "

Jay Batson
       ihnp4!onecom!\
                     isis!jay
seismo!{hao,nbires}!/
Technical Details
Message-ID: <1029@isis.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!nbires!isis!jay
References: <1246@kitty.UUCP> <709@cbmvax.cbmvax.cbm.UUCP> <344@fai.UUCP> <575@ih1ap.UUCP> <362@fai.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!nbires!isis!jay
From: jay@isis.UUCP (Jay Batson)
Newsgroups: net.text,net.unix
Subject: Re: Use of ``vi'' for business office word-processing
Message-ID: <1029@isis.UUCP>
Date: Fri, 19-Sep-86 11:01:50 EDT
Article-I.D.: isis.1029
Posted: Fri Sep 19 11:01:50 1986
Date-Received: Sat, 20-Sep-86 05:43:13 EDT
References: <1246@kitty.UUCP> <709@cbmvax.cbmvax.cbm.UUCP> <344@fai.UUCP> <575@ih1ap.UUCP> <362@fai.UUCP>
Reply-To: jay@isis.UUCP (Jay Batson)
Organization: University of Denver Math and Computer Science
Lines: 55
Keywords: ``vi'' word-processing non-programmers
Summary: Really becoming many things - this is about merging addresses/letters