Annotation of 43BSDTahoe/usr.lib/learn/editor/L20.2c, revision 1.1.1.1

1.1       root        1: #print
                      2: You can also change several lines, and you need not replace
                      3: lines with the same number of lines.  You can put any amount
                      4: of text between the 'c' command and the closing '.', and
                      5: you can remove any number of lines from the file by specifying
                      6: a range of addresses.  For example, 
                      7: 
                      8:    2,5c
                      9:    first
                     10:    second
                     11:    .
                     12: would replace the FOUR lines 2,3,4 and 5 of the file with TWO
                     13: new lines containing "first" and "second".  You can of course
                     14: use more complicated addresses involving $ and . if you wish.
                     15: This directory contains a file "oldrr".  Delete the last two
                     16: lines and replace them by a line reading
                     17: 
                     18: penn central
                     19: 
                     20: and write the new version on a file named "newrr".  Then use "diff"
                     21: to compare the old and new versions of the file.
                     22: Eventually, type "ready".
                     23: #create Ref
                     24: maine central
                     25: bangor and aroostook
                     26: boston and maine
                     27: grand trunk
                     28: vermont central
                     29: boston and albany
                     30: new haven
                     31: delaware and hudson
                     32: new york, susquehanna, and western
                     33: erie-lackawanna
                     34: chessie system
                     35: lehigh valley
                     36: long island railroad
                     37: penn central
                     38: #create oldrr
                     39: maine central
                     40: bangor and aroostook
                     41: boston and maine
                     42: grand trunk
                     43: vermont central
                     44: boston and albany
                     45: new haven
                     46: delaware and hudson
                     47: new york, susquehanna, and western
                     48: erie-lackawanna
                     49: chessie system
                     50: lehigh valley
                     51: long island railroad
                     52: new york central
                     53: pennsylvania
                     54: #user
                     55: #cmp newrr Ref
                     56: #log
                     57: #next
                     58: 21.1a 10

unix.superglobalmegacorp.com

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