l6.1a

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1A 代码 · 共 37 行

1A
37
字号
#printYou may well ask how the editor knows which line to print.The editor keeps track of the 'current line', whichis usually the last line you touched in any way.When you begin editing a file, for example, thecurrent line is the last line.If you want to print any particular line, however,that is easy.  For example, to print the 3rd line you say  3pTo print the first line  1p(That's a one, no matter how much it looks like the letter "l".)Here is a file: I'll put you into the editorwith that file as the 'current file' - print the 4th line,then type 'w', 'q', and "ready" as usual.#create Ref:james madison#create filegeorge washingtonjohn adamsthomas jeffersonjames madisonjames monroejohn quincy adams#print file#copyout#pipeex +'set prompt noopt open' file#user#unpipe#uncopyoutgrep madison .ocopy >X2#cmp Ref X2#log#next7.1a 10

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?