l52.1a

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1A 代码 · 共 72 行

1A
72
字号
#printA very powerful tool is to use pairs of addresseswhich include searches.  For example, to printall lines from the present line to the next linecontaining "stop", say  .,/stop/p(remember that "." is the present line).  In thisdirectory is a file "outline".  Find the line thatbegins "B.3.i".  Note that this line, and the nextfew lines, should begin "A..." for consistency.(Print the whole file to see what's wrong).Change all lines from this line tothe line beginning "B.3.v" to begin "A.3".Then rewrite the file and type "ready".#create RefFirst sectionA.1.i    IntroductionA.1.ii   DefinitionsSecond sectionA.2.i    ScopeA.2.ii   Date effectiveA.2.iii  Who coveredThird sectionA.3.i    Governing committeeA.3.ii   Chairman's electionA.3.iii  Board termsA.3.iv   Board electionsA.3.v    Removal procedureFourth sectionA.4.i    MeetingsA.4.ii   Place of meetingA.4.iii  Frequency of meetingsFifth sectionA.5.i    Record keepingA.5.ii   Corresponding secretaryA.5.iii  Recording secretaryA.5.iv   Financial records#create outlineFirst sectionA.1.i    IntroductionA.1.ii   DefinitionsSecond sectionA.2.i    ScopeA.2.ii   Date effectiveA.2.iii  Who coveredThird sectionB.3.i    Governing committeeB.3.ii   Chairman's electionB.3.iii  Board termsB.3.iv   Board electionsB.3.v    Removal procedureFourth sectionA.4.i    MeetingsA.4.ii   Place of meetingA.4.iii  Frequency of meetingsFifth sectionA.5.i    Record keepingA.5.ii   Corresponding secretaryA.5.iii  Recording secretaryA.5.iv   Financial records#user#cmp outline Ref#succeedYou got it right: I hope you found that the easiestway to change the file would be with the commands /B.3.i/p .,/B.3.v/s/B/A/or some such series.#log#next52.1b 10

⌨️ 快捷键说明

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