代码搜索结果

找到约 10,000 项符合 L 的代码

l72.1a

#print A command related to the global command is the 'v' command. It also selects lines on which a second command is executed; the difference between 'g' and 'v' is that the selected lines for the 'v

l11.2a

#print So far I have always put you into the editor. How do you get there yourself? The main command interpreter (the shell) recognizes ex as the name of the editor. You can also say ex file1 whi

l21.1a

#print Remember all the basic commands: 'd', 'a', 'w' and 'q'. Make a file named 'test' that contains the following lines, exactly as presented below. Then type "ready". #create Ref maine new hampshi

l60.2a

#print Suppose you wanted to combine two files? No editor command you have learned so far will do that. The command 'r' is just what the doctor ordered. It reads in a file, without throwing away the

l37.1a

#print You can use a range of line numbers with the substitute command to change more than one line at once. For example, 1,5s/dog/&s/ will change "dog" on each of the first five lines of the file in

l36.1a

#print So far all the special characters in the substitute command have been used in the left-hand expression, the one that is looked for in the line as it exists before the change. None of these char

l14.2a

#print You can also use the "=" command to find out what the 'current' line is. Since the current line is named '.', the appropriate command is .= and so if you say 3p .= the second command

l16.1a

#print When you are typing after an 'append' command, the editor is no longer listening for its ordinary commands. Between 'a' and '.' none of your usual 'p', 'w', or 'q' commands are recognized. The

l30.1a

#print Although it is always possible to fix errors by retyping the entire erroneous line with the 'c' command, it is usually much faster to make small changes within a line. The editor allows this w

l52.1a

#print A very powerful tool is to use pairs of addresses which include searches. For example, to print all lines from the present line to the next line containing "stop", say .,/stop/p (remember th