📄 l52.1b
字号:
#printEven more powerful is to use two contextsearches for the pair of addressesin front of a command. For example /abc/,/def/pwill print all lines from the one thatcontains "abc" to the one that contains"def". In this directory is a file"phone". On every line between"Pinson" and "Johnson" change "tel" to "ext".(Again, print the whole file first to seewhat's going on here and why the file is bad.)Then rewrite the corrected file andtype "ready".#create Ref telephone numbersMcIlroy M D ext 6050Aho A V ext 4862Baker B S ext 6503Cherry L L ext 6067Knowlton K ext 2328Morris R ext 3878Ossanna J F ext 3520Thompson K ext 2394Pinson E N ext 2582Bourne S R ext 7419Elliot R J ext 2879Fraser A G ext 3685Johnson S C ext 3968Kernighan B W ext 6021Ritchie D M ext 3770Vollaro J R ext 6321#create phone telephone numbersMcIlroy M D ext 6050Aho A V ext 4862Baker B S ext 6503Cherry L L ext 6067Knowlton K ext 2328Morris R ext 3878Ossanna J F ext 3520Thompson K ext 2394Pinson E N tel 2582Bourne S R tel 7419Elliot R J tel 2879Fraser A G tel 3685Johnson S C tel 3968Kernighan B W ext 6021Ritchie D M ext 3770Vollaro J R ext 6321#user#cmp phone Ref#log#next53.1a 1052.2c 5
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -