代码搜索:Create
找到约 10,000 项符合「Create」的源代码
代码结果 10,000
www.eeworm.com/read/101082/6243287
1c l16.1c
#print
The current directory contains a file
named 'hand'. The third line is missing:
add the line
middle finger
after line 2 of this file.
Check what you're doing by printing the file
with
1,$p
www.eeworm.com/read/101082/6243306
2b l43.2b
#print
Pick up the file "line" and change
x, y. and z
into
x, y, and z
Then rewrite the file and type "ready".
#create Ref
x, y, and z
#create line
x, y. and z
#user
#cmp line Ref
#log
#next
43.2c
www.eeworm.com/read/101082/6243310
1b l60.1b
#print
You can, of course, use the 'r' command
with an address. Any editor command can be used
with an address (except 'q'). For example, there
is a file 'phone' in this directory.
If you print it,
www.eeworm.com/read/101082/6243315
2b l11.2b
#print
You can clearly print a whole file
with
ex filename
1,$p
w
q
which prints a file, just as "cat filename"
does. Print the file "stuff" using the
editor.
Then type "ready".
#create Ref
www.eeworm.com/read/101082/6243322
2d l19.2d
#print
You can delete several lines at once by giving a range
of addresses with the 'd' command. For example, the sequence
ex howto
2,5d
w new
q
will delete lines 2 through 5 of the file "howto" an
www.eeworm.com/read/101082/6243326
2a l38.2a
#print
Sometimes you want to recognize a string of characters
only if they appear at the beginning of the line.
The character '^' is used for this purpose. The
command
s/^ab/xy/
will change "ab" to
www.eeworm.com/read/101082/6243333
1a l39.1a
#print
Using the "^" character, you can easily put things
at the beginnings of lines. For example
s/^/***/
puts "***" at the beginning of the line. Now edit
the file "text" and put the symbol '='
www.eeworm.com/read/101082/6243338
1a l31.1a
#print
A convenient abbreviation for the command '1,$p'
is simply '%', which just prints the contents
of a file.
In this directory there is a file named 'tree'.
Print the contents with the command ab
www.eeworm.com/read/101082/6243340
2a l6.2a
#print
How does the editor choose a line to print?
It always remembers a 'current line', which
is the last line of the file originally,
but you can choose any line you want. The command
3p
prints t
www.eeworm.com/read/101082/6243344
2d l30.2d
#print
In this directory is a file named "airport"
whose second line says "xx" where it should say
"ne". Edit the file, change those letters, and
rewrite the file. Then type "ready".
#create Ref
idl