代码搜索:L
找到约 10,000 项符合「L」的源代码
代码结果 10,000
www.eeworm.com/read/101082/6243224
2d l15.2d
#print
As we mentioned, you can add several lines at once. Here is
a set of lines; go into the editor, append them, write them
on a file named "fruit", and then leave the editor and
type "ready".
#cr
www.eeworm.com/read/101082/6243225
2b l14.2b
#print
You can use all kinds of addresses with "=" so
that you can find the number of the last line with
$=
for example. There is a file 'monteverdi' in this
directory: find out the number of the
www.eeworm.com/read/101082/6243226
2c l19.2c
#print
In this directory there is a file "pres" in which
either the 5th line or the 6th line does not
belong. Edit the file, print the dubious lines,
delete the bad one, and then rewrite the file.
Th
www.eeworm.com/read/101082/6243228
2c l70.2c
#print
In this directory is another copy of the
"cities" file as you modified it,
and the previous version named "ocities".
Use "diff" to find out how many lines you deleted.
Reply "answer N" where N
www.eeworm.com/read/101082/6243229
3f l10.3f
#print
How would you print from the first line of a file to
the next to last line (thus printing all but the last
line of something)? I'll put you in the editor - do that
and then type the usual w, q
www.eeworm.com/read/101082/6243230
2c l18.2c
#print
Again, remembering that "5i" is the same as "4a"
what command is the same as
.-1a
to the editor? Respond "answer XX" where XX is that
command.
#copyin
#user
#uncopyin
#match i
#match .i
#log
www.eeworm.com/read/101082/6243233
2c l7.2c
#print
Now, print the fourth line in this file twice,
using the same pattern. The file is the same,
and you should put the usual finish (w, q, ready)
after printing the line.
#create Ref
4p
.p
w
q
#c
www.eeworm.com/read/101082/6243234
1b l12.1b
#print
This directory still has both files named 'harry'
and 'norman' in it. You checked that they were
the same with 'cat'. Now, for an easier time,
try 'diff'. If it doesn't report any difference
www.eeworm.com/read/101082/6243236
2b l40.2b
#print
In the file "section" change all lines ending in the characters
",
to end in
,"
so that, for example, the line
He said "I'll come",
becomes
He said "I'll come,"
and then rewrite the fil
www.eeworm.com/read/101082/6243237
2c l11.2c
#print
You can of course execute other shell commands
before going into the editor. For example,
in this directory there is a file named for a New Jersey
city. Find out what file it is; then print i