代码搜索:Create
找到约 10,000 项符合「Create」的源代码
代码结果 10,000
www.eeworm.com/read/101082/6243348
2e l18.2e
#print
Just before the last line of file 'airlines'
in this directory insert the line
twa
and then rewrite the file with wq and
type "ready".
#create Ref
american
braniff
continental
delta
eastern
n
www.eeworm.com/read/101082/6243352
2d l36.2d
#print
On line 4 of the file "attribute" is either the word
"color" or the word "Color". With one command
add an 's' to the end of the word. Check that you did it right;
then rewrite the file and ty
www.eeworm.com/read/101082/6243353
2b l15.2b
#print
Now make a file containing the line
The Hon. Brendan Byrne
and write it on file "gov".
Then type "ready".
#create Ref
The Hon. Brendan Byrne
#user
#cmp gov Ref
#log
#next
15.1b 10
www.eeworm.com/read/101082/6243354
2a 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 ("."
www.eeworm.com/read/101082/6243359
2c l8.2c
#print
You can also use "-" in addresses.
For example, you can print the
line before the current line with
.-1p
as a command. Again, I'll put
you in the editor; print the fifth
line and then the fo
www.eeworm.com/read/101082/6243362
2b l38.2b
#print
In this directory there is a file "text"; whenever the
letters "cat" begin a line, change them to "mouse"; but
leave other instances of "cat" unaltered. Do this on each line.
Then rewrite the
www.eeworm.com/read/101082/6243363
2a 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
www.eeworm.com/read/101082/6243365
2g l32.2g
#print
One place where "." is useful is in changing
letters that are hard to type, e.g. the # and @
characters. For example, the command
s/a.b/xxx/
will change "a@b" to "xxx". There is a file name
www.eeworm.com/read/101082/6243367
1a 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
www.eeworm.com/read/101082/6243370
2b l8.2b
#print
Using the same scheme, print lines 2 and 3 of this file.
Then rewrite it and leave and type "ready".
#create Ref
:john adams
:thomas jefferson
:"file" 6 lines, 91 characters
#create file
george