l20.2c

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2C 代码 · 共 59 行

2C
59
字号
#printYou can also change several lines, and you need not replacelines with the same number of lines.  You can put any amountof text between the 'c' command and the closing '.', andyou can remove any number of lines from the file by specifyinga range of addresses.  For example,    2,5c   first   second   .would replace the FOUR lines 2,3,4 and 5 of the file with TWOnew lines containing "first" and "second".  You can of courseuse more complicated addresses involving $ and . if you wish.This directory contains a file "oldrr".  Delete the last twolines and replace them by a line readingpenn centraland write the new version on a file named "newrr".  Then use "diff"to compare the old and new versions of the file.Eventually, type "ready".#create Refmaine centralbangor and aroostookboston and mainegrand trunkvermont centralboston and albanynew havendelaware and hudsonnew york, susquehanna, and westernerie-lackawannachessie systemlehigh valleylong island railroadpenn central#create oldrrmaine centralbangor and aroostookboston and mainegrand trunkvermont centralboston and albanynew havendelaware and hudsonnew york, susquehanna, and westernerie-lackawannachessie systemlehigh valleylong island railroadnew york centralpennsylvania#user#cmp newrr Ref#log#next21.1a 10

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?