|
|
1.1 ! root 1: .th FED I 1/15/73 ! 2: .sh NAME ! 3: fed \*- edit associative memory for form letter ! 4: .sh SYNOPSIS ! 5: .bd fed ! 6: .sh DESCRIPTION ! 7: .it Fed ! 8: is used to edit a form letter associative memory ! 9: file, ! 10: .bd form.m, ! 11: which consists of named strings. ! 12: Commands consist of single letters followed by a list of ! 13: string names separated by a single space and ending with a ! 14: new line. ! 15: The conventions of the Shell with respect to `*' and `?' hold for ! 16: all commands but \fBm\fR. ! 17: The commands are: ! 18: .s3 ! 19: .lp +3 3 ! 20: \fBe\fR name ... ! 21: .br ! 22: .it Fed ! 23: writes the string whose name is ! 24: .it name ! 25: onto a temporary file ! 26: and executes ! 27: .it ed. ! 28: On exit from the ! 29: \fIed\fR the temporary file is copied back into the associative ! 30: memory. ! 31: Each argument is operated on separately. ! 32: Be sure to give an ! 33: .it "ed w" ! 34: command (without a filename) ! 35: to rewrite ! 36: .it fed's ! 37: temporary file ! 38: before quitting out of ! 39: .it ed. ! 40: .s3 ! 41: .lp +3 3 ! 42: .bd d ! 43: [ name ... ] ! 44: .br ! 45: deletes a string and its name from the memory. When called with ! 46: no arguments ! 47: .bd d ! 48: operates in a verbose mode typing each string ! 49: name and deleting only if a ! 50: .bd y ! 51: is typed. A ! 52: .bd q ! 53: response returns ! 54: to \fIfed\fR's command level. Any other response does nothing. ! 55: .s3 ! 56: .lp +3 3 ! 57: .bd m ! 58: name1 name2 ... ! 59: .br ! 60: (move) changes the name of name1 to name2 and removes previous ! 61: string name2 if one exists. Several pairs of arguments may be given. ! 62: Literal strings are expected for the names. ! 63: .s3 ! 64: .lp +3 3 ! 65: .bd n ! 66: [ name ... ] ! 67: .br ! 68: (names) lists the string names in the memory. If called with ! 69: the optional arguments, it just lists those requested. ! 70: .s3 ! 71: .lp +3 3 ! 72: .bd p ! 73: name ... ! 74: .br ! 75: prints the contents of the strings with names given by the arguments. ! 76: .s3 ! 77: .lp +3 3 ! 78: .bd q ! 79: .br ! 80: returns to the system. ! 81: .s3 ! 82: .lp +3 3 ! 83: .bd c ! 84: [ ! 85: .bd p ! 86: ] [ ! 87: .bd f ! 88: ] ! 89: .br ! 90: checks the associative memory file for consistency ! 91: and reports the number of free headers and blocks. ! 92: The optional arguments do the following: ! 93: .s3 ! 94: .lp +6 3 ! 95: \fBp\fR causes any unaccounted-for string to be ! 96: printed. ! 97: .s3 ! 98: .lp +6 3 ! 99: \fBf\fR fixes broken memories by adding ! 100: unaccounted-for headers to free ! 101: storage and removing references to ! 102: released headers from associative ! 103: memory. ! 104: .br ! 105: .i0 ! 106: .dt ! 107: .sh FILES ! 108: /tmp/ftmp? temporary ! 109: .br ! 110: form.m associative memory ! 111: .sh "SEE ALSO" ! 112: form(I), ed(I), sh(I) ! 113: .sh WARNING ! 114: It ! 115: is legal but unwise to have string names ! 116: with blanks, `:' or `?' in them. ! 117: .sh BUGS
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.