BSD 4_1_snap development
[unix-history] / usr / lib / learn / editor / L37.1a
CommitLineData
3eb5d546
C
1#print
2You can use a range of line numbers with the
3substitute command to change more than one line at once.
4For example,
5 1,5s/dog/&s/
6will change "dog" on each of the first five lines of the
7file into "dogs". Edit file "text" and change the word
8"cat" on every line into "mouse".
9Then rewrite the file and type "ready".
10#create Ref
11domestic mouse
12alley mouse
13persian mouse
14angora mouse
15wildmouse
16#create text
17domestic cat
18alley cat
19persian cat
20angora cat
21wildcat
22#user
23#cmp text Ref
24#log
25#next
2638.1a 10
2738.2a 6