1 10/20/86 revise_words, rw
2
3 Syntax as a command: rw path word1 rev1...wordn revn -control_args
4
5
6 Function: replaces all occurrences of a given word within a specified
7 text segment or MSF with a new word called the revision. The user can
8 specify more than one word to be revised.
9
10
11 Arguments:
12 path
13 is the pathname of the text segment or MSF.
14 wordi
15 is a word in the text segment to be revised.
16 revi
17 is the revision i.e. the replacement for wordi.
18
19
20 Control arguments:
21 -brief, -bf
22 suppresses the display of the number of revisions for each wordi.
23 -from n, -fm n
24 revisions are made in the text segment starting from the line number
25 specified by n. If this control argument is not specified, the text
26 segment is processed starting from the first line.
27 -header, -he
28 displays the pathname of the text segment.
29 -lines n, -li n
30 for each revision made, the lines and line numbers starting n
31 lines before, through n lines after the line containing the revision
32 are displayed. Thus, if n is 1, three lines are displayed. If n is
33 not specified, only the line containing the revision is displayed.
34 Default
35
36
37 -long, -lg
38 for each word revised, the line and line number where the revision
39 is made is displayed.
40 -temp_dir path, -td path
41 path holds the temporary segment if the input file is an MSF.
42 Default is the process directory.
43 -to n
44 revisions are made in the text segment up to and including the line
45 number specified by n. If this control argument is not specified,
46 the text segment is processed to the last line.
47 -word STR1 STR2
48 replaces the word STR1 with the revision STR2 even though STR1 may
49 look like a control argument.
50
51
52 Notes: The -brief control argument is mutually exclusive with the
53 -long and -lines control arguments.
54
55
56 Words are found in the text segment in the same way as described for
57 the create_wordlist command. Words containing no letters can be
58 revised even though they are normally excluded from a wordlist.