l40.1a

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

1A
30
字号
#printThere is also a special character which indicatesthe end of the line.  It is '$'.  So that  s/ab$/xy/changes 'ab' to 'xy' only if 'ab' ended the line.In the file 'text' there are some lines which endin 'cup'.  Change them to end in 'saucer'.  Again,it only takes one command.Then rewrite the file and type 'ready'.#create Ref3 teaspoons = 1 tablespoon16 tablespoons = 1 saucer48 teaspoons = 1 saucer2 cups = 1 pint2 pints = 1 quart1/2 pt = 1 saucer#create text3 teaspoons = 1 tablespoon16 tablespoons = 1 cup48 teaspoons = 1 cup2 cups = 1 pint2 pints = 1 quart1/2 pt = 1 cup#user#cmp text Ref#log#next40.1b 540.2b 10

⌨️ 快捷键说明

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