代码搜索结果
找到约 10,000 项符合
L 的代码
l3.3a
#print
A file can be printed on your terminal
by using the "cat" command. Just say
"cat file" where "file" is the file name.
For example, there is a file named
"food" in this directory. List it
by s
l7.2a
#print
Sometimes ? is too flexible, and you
only want to allow a few characters. For example,
you might want to abbreviate
ls memo.ab memo.ac
without picking up "memo.ad", "memo.ae", and so forth.
l12.3a
#print
A very useful command is the command
diff x y
which compares the two files x and y and tells
you any differences between the files. If the files
are the same, it says nothing. To test that,
l4.3a
#print
You can use the "ls" command to ask whether
a single file exists without listing the entire
directory. For example, "ls george" will list
"george" if there is a file with that name, and
compla
l9.2a
#print
You can use patterns for file names with commands
other than "ls". For example, you can use them with
the "cat" command to print files.
This directory has three files named
parta
partb
p
l0
#next
0.01a 10
l0.01a
#print
This course will help you learn about basic file handling commands.
First you should understand how to give an answer that learn requests.
The most important thing to remember is that whenever
l10.3a
#print
When you are done with something, you will want to
get rid of the file containing it. The command for that
is "rm" (remove). For example
rm junk
throws away the file named "junk". Try that
l2.2a
#print
The "mv" command changes the names of files.
For example, "mv thomas james" changes the
name of the file "thomas" to be "james".
There is a file in the current directory named
"thomas". Chang
l6.1a
#print
Since the "?" character only matches single characters,
it isn't useful for such questions as "how many files
have names beginning with g?" There is another character,
*
which can be used in