l10.2a
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2A 代码 · 共 40 行
2A
40 行
#printOften you want to refer to the last lineof a file, and you don't know how long it is.There is a special address, "$" for this purpose."$" refers to the end of a file. Thus $pprints the last line of a file and 1,$pprints all of a file.Here's another file. Print all of it, andthen type the usual w, q, and ready.Your commands should look like 1,$p w q ready#create Ref1,$pwq#create fileNew York Mets Managers Casey Stengel Wes Westrum Gil Hodges Yogi Berra Roy McMillan#copyin#pipeex +'set prompt noopt open' file#user#unpipe#uncopyintail -3 .copy >X1#cmp X1 Ref#log#next10.1b 1010.2b 5
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?