|
|
1.1 root 1: .so tmac.ilib
2: .TH EDSCRIPT 1 "The University of Arizona \- 3/27/83"
3: .SH NAME
4: edscript \- generate script for ed(1)
5: .SH SYNOPSIS
6: \f3edscript\fP
7: .SH DESCRIPTION
8: \fIEdscript\fP takes specifications for global edits from standard input
9: and outputs an edit script for \fIed(1)\fR to standard output.
10: \fIEdscript\fR is primarily useful for making complicated literal
11: substitutions that involve characters that have syntactic meaning
12: to \fIed(1)\fR and hence are difficult to enter in \fIed(1)\fR.
13: .PP
14: Each specification begins with a delimiter, followed by a target string,
15: followed by the delimiter, followed by the replacement string, followed
16: by the delimiter.
17: For example
18: .DS
19: |...|**|
20: |****||
21: .DE
22: specifies the replacement of all occurrences of three consecutive periods by two
23: asterisks, followed by the deletion of all occurrences of four
24: consecutive asterisks.
25: Any character may be used for the delimiter, but the same character
26: must be used in all three positions in any specification, and the
27: delimiter character cannot be used in the target or replacement
28: strings.
29: .SH DIAGNOSTICS
30: Any line that does not have proper delimiter structure is noted
31: and does not contribute to the edit script.
32: .SH SEE ALSO
33: ed(1)
34: .SH AUTHOR
35: Ralph E. Griswold
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.