l42.1a
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1A 代码 · 共 29 行
1A
29 行
#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 + =
减小字号Ctrl + -
显示快捷键?