代码搜索:L
找到约 10,000 项符合「L」的源代码
代码结果 10,000
www.eeworm.com/read/101082/6243050
1c l2.1c
#print
This time you have to get a list of the files whose names begin
with "memo", but sorted in order of last change, most recent first,
as produced by "ls -t". Get the list in file "gorp",
then ty
www.eeworm.com/read/101082/6243051
1d l5.1d
#print
How many lines of output does the command
cat word* | pr
produce, as computed by "wc"?
Type "answer N", where N is the number of lines.
(Try to use a pipe, not a temporary file.)
#create word
www.eeworm.com/read/101082/6243052
1b l2.1b
#print
Now make a list of the files in this directory whose
names begin with "t" in the file "foo".
Type "ready" when you are done.
#create X1
#create foo
#create this
#create Ref
that
theother
this
#
www.eeworm.com/read/101082/6243054
1e l0.1e
#create X3
stuff
#print
The list of file names from "ls" can also be obtained
sorted by the date the file was most recently changed,
with the newest files listed first. This list is
obtained by typin
www.eeworm.com/read/101082/6243055
1g l3.1g
#print
This exercise combines several things you've learned already.
In this directory is a file containing a list of words.
Collect all of the words that contain "ly" into a file
called "lywords". (
www.eeworm.com/read/101082/6243056
1f l0.1f
#print
You can combine the optional arguments to "ls"; for example
you can get the "long" list sorted by time of last change
by saying
ls -lt
Try that, then type "ready".
#copyin
#user
#uncopyin
#ma
www.eeworm.com/read/101082/6243057
1e l6.1e
#print
By the way, you can also use "grep" to print out ___all ___but
those lines that contain occurrences of a pattern:
grep -v pat files...
prints all the lines in files... that don't contai
www.eeworm.com/read/101082/6243058
1d l1.1d
#print
Suppose you want to print all lines in the file "memo"
that contain a question mark "?". Since the question mark
is an abbreviation character (as in "ls ?"), you
have to make sure that the com
www.eeworm.com/read/101082/6243059
1d l2.1d
#print
If you type "ls >list", does the name "list" appear in the file
called "list"? Figure it out, then type yes or no.
#copyin
#user
#uncopyin
#match yes
#log
#next
2.1e 10
www.eeworm.com/read/101082/6243060
1d l3.1d
#print
The pr command has a number of other capabilities besides simple
printing of files. Probably the most useful is that it can do
multi-column printing. This is controlled by an optional
argumen