代码搜索结果

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

l4.1a

#print You must recognize that the commands typed at the editor are distinct from the commands typed at the normal UNIX command interpreter. In particular, neither program knows the commands recogniz

l8.2a

#print You can give addresses involving simple arithmetic to move around in the file. For example, 3+1p is the same as 4p in the editor. Now that's not interesting, but if the current line ("."

l63.1a

#print Line 0 is a legitimate address for a few commands; you can append text at the beginning of a file by typing 0a and you can move lines to the beginning of a files by using m0 Move the last

l34.2a

#print You can also specify "all characters except ..." using an expression of the form [^ab] which means "any character except the letters 'a' or 'b'. This is just like filename patterns again. Doe

l42.2a

#print Normally the 's' command only changes the first instance on a line of the expression it is recognizing. Sometimes you want to change everything. For example, try the following sequence, and n

l52.2a

#print You can use pairs of addresses which involve searches. For example, to print all lines from the first line until the next line containing "stop", say 1,/stop/p In this directory is a file

l13.1a

#print Remember we said that you didn't have to know the number of the last line, because '$' could always be used for that. What if you want to know how long the file is? Well, the editor command

l8.1a

#print To move around, you can use simple arithmetic when specifying what to print. For example, 3+1p is the same as 4p as an editor command. Now that's not very interesting; but if the '.' curr

l12.1a

#print Each 'w' command typed so far has written the edited material back on the same file that it came from originally. This can be changed by giving a filename on the 'w' command: w camden will wr

l33.2a

#print When you want to match one of a few specific characters, and not anything, the pattern is similar to that used in file names. That is, [abc] matches the letters 'a', 'b', or 'c', but nothing