|
|
1.1 root 1: .pa 1
2: .he 'FED (I)'1/15/73'FED (I)'
3: .ti 0
4: NAME
5: .br
6: fed -- edit associative memory for form letter
7: .sp
8: .ti 0
9: SYNOPSIS
10: .br
11: fe__d_
12: .sp
13: .ti 0
14: DESCRIPTION
15: .br
16: fed___ is used to edit a form letter associative memory
17: file, form.m, which consists of named strings.
18: Commands consist of single letters followed by a list of
19: string names separated by a single space and ending with a
20: new line.
21: The conventions of the Shell with respect to '*' and '?' hold for
22: all commands but m_ where literal string names are expected.
23: The commands are:
24:
25: .in +5
26: .ti -5
27: e name918 ...
28:
29: e_dit writes the string whose name is name918 onto a temporary file
30: and executes the system editor ed__. On exit from the system
31: editor the temporary file is copied back into the associative
32: memory. Each argument is operated on separately. The sequence of
33: commands to add the string from 'file' to memory with name
34: 'newname' is as follows:
35:
36: e newname
37: 0 (printed by ed)
38: r file
39: 200
40: w
41: 200
42: q (get out of ed)
43: q (get out of fe)
44:
45: To dump a string onto a file:
46:
47: e name
48: 200 (printed by ed)
49: w filename
50: 200
51: q (get out of ed)
52: q (get out of fe)
53: .sp2
54: .ti -5
55: d [ name918 ... ]
56:
57: d_eletes a string and its name from the memory. When called with
58: no arguments d_ operates in a verbose mode typing each string
59: name and deleting only if a 'y' is typed. A 'q' response returns
60: to fed's command level. Any other response does nothing.
61: .sp 2
62: .ti -5
63: m name918 name928 ...
64:
65: (m_ove) changes the name of name918 to name928 and removes previous
66: string name928 if one exists. Several pairs of arguments may be given.
67: .sp 2
68: .ti -5
69: n [ name918 ... ]
70:
71: (n_ames) lists the string names in the memory. If called with
72: the optional arguments, it just lists those requested.
73: .sp 2
74: .ti -5
75: p name918 ...
76:
77: p_rints the contents of the strings with names given by the arguments.
78: .sp 2
79: .ti -5
80: q
81: (q_uit) returns to the system.
82: .sp 2
83: .ti -5
84: c [ p_ ] [ f_ ]
85:
86: c_hecks the associative memory file for consistency
87: and reports the number of free headers and blocks.
88: The optional arguments do the following:
89: .sp
90: .in +5
91: .ti -2
92: p causes any unaccounted for string to be
93: printed
94:
95: .ti -2
96: f fixes broken memories by adding
97: unaccounted-for headers to free
98: storage and removing references to
99: released headers from associative
100: memory.
101: .in -5
102: .sp
103: .sp
104: .in -5
105: .ti 0
106: FILES /tmp/ftmp? temporary
107: .br
108: form.m associative memory
109: .sp
110: .ti 0
111: SEE ALSO form(I), ed(I), sh(I)
112: .sp
113: .ti 0
114: DIAGNOSTICS '?' unknown command
115: .br
116: 'Cannot open temp. file'-- cannot create a temporary file for ed command
117: .br
118: 'name not in memory.' if string 'name' is not in the associative
119: memory and is used as an argument for d_ or m_.
120: .sp
121: .ti 0
122: BUGS --
123: .sp
124: .ti 0
125: WARNING It
126: is legal but an unwise idea to have string names
127: with blanks, ":" or "?" in them.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.