代码搜索结果
找到约 10,000 项符合
L 的代码
l4.2a
#print
Is the command
cat
l3.1a
#print
The notation ">" can be used by most programs to capture
output on a file. For example,
cat henry >james
makes a copy of "henry" in the file "james"; in fact this is
essentially identica
l0
#next
0.1a 10
l6.1a
#print
Of course it is still possible to use files with ""
to supply input to one end of a pipeline and to
collect the output from the other end.
In this directory are two files whose names b
l0.1a
#print
In the basic files course you learned about the "ls" command
for listing the names of files in the current directory.
You will now learn some of the extra abilities of "ls".
UNIX maintains a lo
l2.1a
#print
Most of the programs we have studied so far produce their
output on the terminal -- examples are "ls", "spell", "grep",
"date", "who", and so on. (Of course, some do not, like
"mv", "cp", and
l4.1a
#print
You have already had some practice in using ">" to capture
the output of a program. In much the same way, it
is possible to arrange for a program to take its input not
from the terminal but fr
l7.1a
#once #create message
.ND
.tr %$
.EQ
delim $$
.EN
.LP
The next construction we're going to look at
is one for putting things above and below other
things, in a rather specialized way.
For example, if
l5.1a
#once #create message
.ND
.EQ
delim $$
.EN
.LP
So far we have carefuly skirted around a potential
problem; maybe you've wondered about it.
Suppose we want to produce an equation that looks
like this:
l1.1a
#print
To properly print a file containing an equation,
you have to type a longer-than-usual command line.
If you are using a DASI or GSI, to print a file
"math" that contains mathematics, you must sa