📄 l70.1a
字号:
#printPerhaps the most powerful command in the editor is the 'g' (global) command. This always precedes a second commandon the same command line; it selects those file lineson which the second command is to be executed.For example g/abc/s/def/ghi/psays: "Find all lines in the file whichcontain the string "abc"; change the first"def" on any such line into "ghi". The commandafter the 'g' may be any command, of course.Needless to say, the expressions after the 'g' mayinclude all the special characters.Edit the file "towns" so that each line beginningwith "-" has " (county seat)" added at its end.Rewrite the file and type "ready".#create Ref-newark (county seat) east orange south orange maplewood-elizabeth (county seat) linden cranford westfield-morristown (county seat) madison chatham dover#create towns-newark east orange south orange maplewood-elizabeth linden cranford westfield-morristown madison chatham dover#user#cmp towns Ref#log#next71.1a 1070.2e 970.2d 6
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -