File:  [CSRG BSD Unix] / 43BSDTahoe / usr.lib / learn / editor / L37.1a
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

#print
You can use a range of line numbers with the
substitute command to change more than one line at once.
For example,
 1,5s/dog/&s/
will change "dog" on each of the first five lines of the
file into "dogs".  Edit file "text" and change the string
"cat" on every line into "mouse".
Then rewrite the file and type "ready".
#create Ref
domestic mouse
alley mouse
persian mouse
angora mouse
wildmouse
#create text
domestic cat
alley cat
persian cat
angora cat
wildcat
#user
#cmp text Ref
#log
#next
38.1a 10
38.2a 6

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.