FED (I)                      1/15/73                      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  ...
                      1


                     edit writes the string whose name is name
                                                              1
                     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

                             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)





                d [ name  ... ]
                        1


                     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-
                                                     2
                     ists.  Several pairs of arguments may be

                     given.





                n [ name  ... ]
                        1


                     (names) lists the string names in the mem-

                     ory.  If called with the optional arguments,

                     it just lists those requested.





                p name  ...
                      1


                     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 and reports the number of free

                     headers and blocks.  The optional arguments

                     do the following:



                        p causes any unaccounted for string to be

                          printed



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



WARNING         It is legal but an unwise idea to have string

                names with blanks, ":" or "?" in them.