l36.1a
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1A 代码 · 共 34 行
1A
34 行
#printSo far all the special characters in the substitute commandhave been used in the left-hand expression, the one thatis looked for in the line as it exists before the change.None of these characters are meaningful in the right-handexpression; for example, s/ab/a./turn "ab" into "a." just as if "." were an ordinary letter.But there is one character that is special on the rightside of a substitution, which is '&'. The ampersandis replaced by whatever text is being replaced. In s/the/&m/the string "the" is turned into "them" because the '&' isreplaced by "the".In this directory there is a file 'text'; on the third line,change the word 'dog' into 'dogs'; then rewrite the fileand say "ready".#create Refcatmousedogsrat#create textcatmousedograt#user#cmp text Ref#log#next37.1a 1037.2a 6
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?