📄 l35.2e
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -