.pa 1
.he 'FED (I)'1/15/73'FED (I)'
.ti 0
NAME
.br
fed -- edit associative memory for form letter
.sp
.ti 0
SYNOPSIS
.br
fe__d_
.sp
.ti 0
DESCRIPTION
.br
fed___ is used to edit a form letter associative memory
file, form.m, which consists of named strings.
Commands consist of single letters followed by a list of
string names separated by a single space and ending with a
new line.
The conventions of the Shell with respect to '*' and '?' hold for
all commands but m_ where literal string names are expected.
The commands are:

.in +5
.ti -5
e name918 ...

e_dit writes the string whose name is name918 onto a temporary file
and executes the system editor ed__.  On exit from the system
editor the temporary file is copied back into the associative
memory.  Each argument is operated on separately.  The sequence of
commands to add the string from 'file' to memory with name
'newname' is as follows:

	e newname
	0	(printed by ed)
	r file
	200
	w
	200
	q	(get out of ed)
	q	(get out of fe)

To dump a string onto a file:

	e name
	200	(printed by ed)
	w filename
	200
	q	(get out of ed)
	q	(get out of fe)
.sp2
.ti -5
d [ name918 ... ]

d_eletes a string and its name from the memory.  When called with
no arguments d_ operates in a verbose mode typing each string
name and deleting only if a 'y' is typed.  A 'q' response returns
to fed's command level.  Any other response does nothing.
.sp 2
.ti -5
m name918 name928 ...

(m_ove) changes the name of name918 to name928 and removes previous
string name928 if one exists.  Several pairs of arguments may be given.
.sp 2
.ti -5
n [ name918 ... ]

(n_ames) lists the string names in the memory.  If called with
the optional arguments, it just lists those requested.
.sp 2
.ti -5
p name918 ...

p_rints the contents of the strings with names given by the arguments.
.sp 2
.ti -5
q
(q_uit) returns to the system.
.sp 2
.ti -5
c [ p_ ] [ f_ ]

c_hecks the associative memory file for consistency
and reports the number of free headers and blocks.
The optional arguments do the following:
.sp
.in +5
.ti -2
p causes any unaccounted for string to be 
printed

.ti -2
f fixes broken memories by adding 
unaccounted-for headers to free
storage and removing references to
released headers from associative
memory.
.in -5
.sp
.sp
.in -5
.ti 0
FILES		/tmp/ftmp?	temporary
.br
form.m	associative memory
.sp
.ti 0
SEE ALSO	form(I), ed(I), sh(I)
.sp
.ti 0
DIAGNOSTICS	'?' unknown command
.br
'Cannot open temp. file'-- cannot create a temporary file for ed command
.br
'name not in memory.' if string 'name' is not in the associative
memory and is used as an argument for d_ or m_.
.sp
.ti 0
BUGS		--
.sp
.ti 0
WARNING		It
is legal but an unwise idea to have string names
with blanks, ":" or "?" in them.
