📄 l41.1a
字号:
#printOne thing you must be careful of is that the substitute command does notknow about word boundaries. It will change the first occurrence of aletter string it matches without regard to blanks or punctuation around it.Thus, if the current line is i would rather be the kingand you type s/the/a/pyou get i would raar be the kinginstead of i would rather be a kingRight? You should always print lines after changing them to avoidmissing such errors. You can defend against them by increasing theamount of context you specify; in this case, for example, you could say s/the /a /pand get i would rather be a kingOften the "$" operator is useful here, if you want to change the lastthing on the line. In the file 'text', the third line reads never, never, never, never, neverEdit this file to make the third line read never, never, never, never, or hardly everRewrite the file and type "ready".#create Refwhy should a dog, a horse, a rat, have life,and thou no breath at all? thou'lt come no more,never, never, never, never, or hardly everpray you, undo this button. thank you, sir.#create textwhy should a dog, a horse, a rat, have life,and thou no breath at all? thou'lt come no more,never, never, never, never, neverpray you, undo this button. thank you, sir.#user#cmp text Ref#log#next42.1a 1041.1b 542.2a 6
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -