📄 l42.1a
字号:
#printNormally the 's' command only changesthe first instance on a line of the expressionit is looking for. Sometimes you want to changemore than one instance. If you put a 'g' after thecommand, as in s/cat/dog/gall instances of 'cat' will be changed to 'dog'. Toprint the result you must say s/cat/dog/gp('pg' at the end doesn't work, sorry).Edit file 'stuff' in this directory to change everyinstance of 'green' to 'red' on every line.Then rewrite the file and type "ready".#create Refred light, village redred book, red paper, red pencilred car, red sign, redhorn#create stuffgreen light, village greengreen book, green paper, green pencilgreen car, green sign, greenhorn#user#cmp stuff Ref#log#next43.1a 1043.2a 5
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -