📄 form.6
字号:
.th FORM VI 6/15/72.sh NAMEform \*- form letter generator.sh SYNOPSIS.bd formproto arg ....sh DESCRIPTION.it Formgenerates a form letter from a prototypeletter, an associative memory, arguments and in a special case, thecurrent date..s3If.it formis invoked with the.it protoargument \fIx\fR, the associative memory issearched for an entry with name \fIx\fR and the contents filed under that name areused as the prototype.If the search fails, the message `[\fIx\fR]:' is typed onthe console and whatever text is typed in from the console, terminated bytwo new lines, is used as the prototype.If the prototype argument is missing, `{letter}' is assumed..s3Basically,.it formis a copy process from the prototype to the output file.If an element of the form [\fIn\fR] (where \fIn\fR is a digit from 1 to 9) is encountered,the \fIn\fR-th.it argis inserted in its place, and that argument is thenrescanned. If [0] is encountered, the current date is inserted. Ifthe desired argument has not been given, a message of the form `[\fIn\fR]:' istyped.The response typed in then is used for that argument..s3If an element of the form [\fIname\fR] or {\fIname\fR} is encountered, the \fIname\fR is looked up in theassociative memory. If it is found, the contents of the memory under this\fIname\fR replaces the original element (again rescanned). Ifthe \fIname\fR is not found, a message of the form `[\fIname\fR]:' is typed.The response typed in is used for that element. The response isentered in the memory under the name if the name is enclosed in [ ].The response is not entered in the memory but is remembered for theduration of the letter if the name is enclosed in {}.Brackets and braces may be nested..s3In both of the above cases, the response is typed in by enteringarbitrary text terminated by two new lines. Only the first of thetwo new lines is passed with the text..s3If one of the special characters [{]}\\ is preceded bya \\, it loses its special character..s3If a file named `forma' already exists in the user's directory, `formb' isused as the output file and so forth to `formz'..s3The file `form.m' is created if none exists. Because form.m isoperated on by the disc allocator, it should only be changed by using.it fed,the form letter editor, or.it form..s3.sh FILESform.m associative memory.brform? output file (read only).sh "SEE ALSO"fed (VI), roff (I).sh BUGSAn unbalanced ] or } acts as an end of file butmay add a few strange entries to the associative memory.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -