l35.2e
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2E 代码 · 共 34 行
2E
34 行
#printA very powerful construction is ".*",which matches any character (remember '.')repeated any number of times. For examples/a.*b/.../replaces anything of the formsaxyzb, aaaaaab, a1234b, abbbbsince it requires just an 'a' and a 'b'at the ends of the string, withanything at all in between.Or, to throw away everythingon a line after the word "stop", you could trys/stop.*/stop/In this directory is a file "sentence".Delete everything afterthe word "last" on the second line of the file.#create RefThis file has a sentence in whichthis is the last#create sentenceThis file has a sentence in whichthis is the last word which should be left.#user#cmp sentence Ref#next36.1a 1036.2a 5
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?