l33.2b

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

2B
27
字号
#printYou can of course use the [] operators anywhere ina pattern.  Editor patterns, by the way, are called"regular expressions".  For example, suppose you wantedto change either the word "trick" or the word "track"to "stop".  What command would you need?Do you see that  s/tr[ia]ck/stop/pwill do that?  Now figure out what command you wouldneed to change either "bear" or "beat" into "best"and print the line after the change.Type "answer COMMAND" where COMMAND is that line.#copyin#user#uncopyin#match s/bea[rt]/best/p#match s/bea[tr]/best/p#match s/bea[rt]/best/You forgot the "p" part.#match s/bea[tr]/best/You forgot the "p" part.#log#next33.2c 5

⌨️ 快捷键说明

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