📄 e7
字号:
.sp 2.H1Summary of Commands and Line Numbers.H2.PGThe general form of.uledcommands is the command name,perhaps preceded by one or two line numbers, and,in the case of.ule, rand.ulw,followed by a file name.Only one command is allowed per line,but a.ulpcommand may follow any other command(except for.ule, r, wand.ulq)..sp.ula (append)Add lines to the buffer (at line dot, unlessa different line is specified). Appending continues until ``\*.''is typed on a new line.Dot is set to the last line appended..sp 4p.ulc (change)Change the specified lines to the new text which follows..liThe new lines are terminated by a ``\*.''.If no lines are specified,replace line dot.Dot is set to last line changed..sp 4p.uld (delete)Delete the lines specified.If none are specified, delete line dot.Dot is set to the first undeleted line,unless ``$'' is deleted,in which case dot is set to ``$''..sp 4p.ule (edit)Edit new file.Any previouscontents of the buffer are thrown away,so issue a.ulwbeforehandif you want to save them..sp 4p.ulf (file)Print remembered filename.If a name follows.ulfthe remembered name will be set to it..sp 4p.ulg (global).ulg/---/commandswill execute the commands on those lines that contain``---'', which can be any context search expression..sp 4p.uli (insert)Insert lines before specified line (or dot).liuntil a ``\*.'' is typed on a new line.Dot is set to last line inserted..sp 4p.ulm (move)Move lines specified to after the linenamed after.ulm.Dot is set to the last line moved..sp 4p.ulp (print)Print specified lines.If none specified, printline dot.A single line number is equivalent to``line-number p''.A single newline prints ``\*.+1'',the next line..sp 4p.ulq (quit)Exit from ed.Wipes out all text in buffer!!.sp 4p.ulr (read)Read a file into buffer (at end unless specifiedelsewhere.) Dot set to last line read..sp 4p.uls (substitute).uls/string1/string2/willsubstitute the characters of`string2' for `string1' in specified lines.If no line is specified, make substitution in line dot.Dot is set to last line in which asubstitution took place, which means that if no substitution took place, dot is not changed..ulschanges only the first occurrence of string1 on a line;to change all of them, type a ``g'' after the final slash..sp 4p.ulv (exclude).ulv/---/commandsexecutes ``commands'' on those lines that.uldo notcontain ``---''..sp 4p.ulw (write)Write out buffer onto a file.Dot is not changed..sp 4p.ul.li.= (dot value)Print value of dot.(``='' by itself prints the value of ``$''.).sp 4p.ul! (temporary escape) Execute this line as a UNIXcommand..sp 4p.ul/-----/Context search.Search for next line which containsthis string of characters.Print it.Dot is set to line where stringfound.Search starts at ``\*.+1'', wraps around from ``$'' to 1,and continues to dot, if necessary..sp 4p.ul?-----?Context search in reverse direction.Start searchat ``\*.\(mi1'', scan to 1, wrap around to ``$''..in 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -