You might also know that the standard output (the screen) is a file descriptor, too.
您可能还知道,标准输出(屏幕)也是一个文件描述符。
Users can stream the output data into a string, an internal buffer, the standard output, or a file.
用户可以使这些输出数据流入字符串、内部缓冲区、标准输出或文件。
If you want to combine error and standard output into a single file, use numbered redirection (see Listing 4).
如果希望将错误或标准输出组合为单个文件,请使用编号重定向(请参见清单4)。
As a bit of helpful trivia, each application is initially opened with three file descriptors, 0 through 2, for the standard input, output, and error streams, respectively.
有一点不是很重要但却很有帮助,初始打开每个应用程序时,都具有三个文件描述符,从0到2,分别表示标准输入、输出和错误流。
The output is sent to standard output that can then be redirected to a file.
输出被发送给标准输出,您可以随后将它重定向到文件。
Typically, output from the template goes to whatever output file you specify when you run the XSL translator — usually a file or a standard out (that is, the console or the default output file).
一般说来,模板输出到运行XSL转换器时所指定的输出文件,通常是一个文件或者标准输出(及控制台或者默认的输出文件)。
The arguments are a file (or multiple files) for standard output.
对标准输出而言,参数是一个或多个文件。
Output appears to standard out and.out file.
输出显示为标准输出和.out文件。
This example also illustrates the use of - to signify standard input to cat, so we can concatenate the output of tr and the text2 file.
这一示例也解释了如何使用-表示cat的标准输入,因此我们可以将tr的输出与text2文件连接起来。
Run the program again, but capture standard output to a file, for example
再次运行这个程序,但是要将标准输出重定向到一个文件中,例如
For example, within any shell, you can use the tee command to redirect a file and the standard output (see Listing 17).
例如,在任何Shell中,您都可以使用tee命令来重定向文件和标准输出(请参见清单17)。
Listing 4 shows a small script that reads the NFS server config file of Solaris and prints it to standard output.
清单4显示了一个小脚本,阅读Solaris的NFS服务器配置文件并以标准输出打印。
VoiceXML is the name given to the standard for voice-based XML output, although the file format itself is called VXML.
VoiceXML一名源于一种标准,用于基于语音的XML输出,但是这种文件格式本身称为VXML。
The Web server writes the contents of the cached file directly to standard output, which appears in the user's browser.
Web服务器直接将缓存文件的内容写到标准输出,显示在用户的浏览器中。
WriteContents is called to write the contents of the file to standard output, which it does by calling the fpassthru function in PHP.
调用writeContents以将文件内容写到标准输出,在php中通过调用fpassthru函数实现该功能。
No matter how you've been reading your file, you can dump the rest of your data to your standard output channel using fpassthru.
无论怎样读取文件,您都可以使用fpassthru 将其余数据转储到标准输出通道。
The pipe between the two (|) feeds the standard output from the first tar into the standard input of the second, effectively copying the files into, and then out of, a non-existent archive file.
两者之间的管道 (|) 将第一个tar 的标准输出传入到第二个 tar的标准输入,并且高效地将文件复制到一个并不存在的存档文件,然后再从其中提取文件。
When the output of cat is not redirected to a file or another command's standard input, cat behaves as most command-line tools and send its output to the console.
当cat的输出没有被重定向到一个文件或另一个命令的标准输出时,cat表现出来的行为与多数命令行工具一样,即将其输出发送到控制台。
Also, since by default the LogParser reads from standard input, you can pipe a log file from a running server to the LogParser to get output generated in real time.
同时,虽然LogParser默认从标准输入中读取数据,但是你也可以指定一个来自运行时服务器的日志文件,用LogParser实时输出。
Because reports generated to standard output usually scroll past your screen, it's recommended that you use the -o option to write the output to a file (see Listing 2).
因为发送到标准输出的报告常常会在屏幕上一滚而过,所以建议使用- o选项将输出写到一个文件中(见清单2)。
You can change the number of lines that these commands send to their standard output with the -n option (of course, your results will vary depending on the contents of your XF86Config file)
您可以通过使用 -n选项改变这些命令发送至其标准输出的行数(当然,输出结果将随 XF86Config文件的内容而不同)
In the first example, we use cat to read the file and output it to standard output, which is piped into the standard input of FMT.
在第一个例子里面,我们使用cat命令来读取文件的内容,然后将内容输送到标准输出,标准输出通过管道机制作为命令fmt的标准输入。
There is also an application named ct that is running out of the same directory and has its standard output (file descriptor 1) redirected to a file called output.
还有一个名为ct的应用程序正运行于相同的目录,并且其标准输出(文件描述符1)重定向到一个名为 output 的文件。
It will not return an error to standard output if the file is not found. One way to test the return of the command is to use substitution, like shown in Listing 8.
即使找不到文件,它也不会向标准输出返回错误。
All of the individual stop watch logs will be written to standard output (note that your servlet container may pipe standard output to a file on disk).
所有单独的stopwatch日志都被写入标准输出(请注意你的servlet容器可能把标准输出定向到磁盘的某个文件中)。
One of these remains standard output, while the other is a file whose name you specify on the command line.
其中一个流保持为标准输出,另一个流是一个文件,文件名由您在命令行指定。
If - is used as file, documents will be printed to standard output, disabling link conversion.
如果-是用来作为文件,这些文件将在印到标准输出,则禁用链接转换。
Produces a listing file on the standard output. If you omit this option, no listing file is produced.
在标准输出中产生一个列表文件,如果忽略则无。
Print selected parts of lines from each FILE to standard output.
把每个文件中的各行被选中的部分打印到标准输出。
The information is sent to standard output and can be redirected to a file.
该信息发送到标准输出,并可重定向到文件。
应用推荐