6/15/72                                                   FED (I)

NAME            fed -- edit associative memory for form letter

SYNOPSIS        fed

DESCRIPTION     fed is used to edit a form letter associative

                memory file, form.m, which consists of named

                strings.  Commands consist of single letters fol-

                lowed 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:

                e name  ...

                     edit writes the string whose name is name
                     onto a temporary file and executes the sys-

                     tem editor ed.  On exit from the system edi-

                     tor 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


                             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

                             q       (get out of ed)

                             q       (get out of fe)

                d [ name  ... ]

                     deletes a string and its name from the mem-

                     ory.  When called with no arguments d oper-

                     ates 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.

                m name  name  ...
                      1     2

                     (move) changes the name of name  to name
                                                    1        2
                     and removes previous string name  if one ex-
                     ists.  Several pairs of arguments may be


                n [ name  ... ]

                     (names) lists the string names in the mem-

                     ory.  If called with the optional arguments,

                     it just lists those requested.

                p name  ...

                     prints the contents of the strings with

                     names given by the arguments.

                q (quit) returns to the system.

                c [ p ] [ f ]

                     checks the associative memory file for con-

                     sistency.  The optional arguments do the


                        p causes any unaccounted for string to be


                        f fixes broken memories by adding

                          unaccounted-for headers to free storage

                          and removing references to released

                          headers from associative memory.

FILES           /tmp/ftmp?      temporary

                form.m  associative memory

SEE ALSO        form(I), ed(I), sh(I)

DIAGNOSTICS     '?' unknown command

                'Cannot open temp. file'-- cannot create a tempo-

                rary file for ed command

                'name not in memory.' if string 'name' is not in

                the associative memory and is used as an argument

                for d or m.

BUGS            --

OWNER           rhm,lcc