代码搜索结果
找到约 10,000 项符合
L 的代码
l36.2a
#print
So far all the special characters in the substitute
command are used to select the string to be replaced.
There is one character used in the new string to be inserted.
It is '&' which when used
l18.2a
#print
Once in a while you want to add text just before
a certain line, rather than just after it. For this purpose
there is a command 'i' (insert) which is just like 'a'
except that the new material
l43.2a
#print
Note that there is quite a list of characters that
are special to the editor:
. [ * ^ $ & /
What do you do when you want to use one of these
characters as itself, rather than for its special m
l16.2a
#print
So far you have always appended to an empty file,
so that there was no problem about where the appended lines
were placed in the file. If the file you're appending to
already has lines in it,
l1.1a
#print
This program will try to help you learn how to use the editor.
You should really know, before starting this, how to use files
and how to type.
There is a "learn files" procedure to teach you ab
l19.2a
#print
To avoid just accumulating lines forever, you need some
way of getting rid of them. The 'd' command (delete) removes
lines you don't want. Since it also removes lines that
you do want if you
l10.2a
#print
Often you want to refer to the last line
of 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
$p
prints the l
l42.1a
#print
Normally the 's' command only changes
the first instance on a line of the expression
it is looking for. Sometimes you want to change
more than one instance. If you put a 'g' after the
command
l4.2a
#print
The editor and the 'shell' (the normal command
interpreter) accept different commands. The
shell (which types '%' at you) understands
"ls", "mv", "cp", "date" and so forth; the
editor understa
l61.1a
#print
Note that usually you just type 'w' without a file name,
and the editor buffer is written on the 'current file'.
What is the 'current file' when you have executed an 'r'
command? Well, it does