打印到文件时,获取或设置文件名。
我增加了打印到标准输出的语句,但是为什么不采用一个更加成熟的日志机制来记录文件上载的时间和地点?
I added statements to print to standard out, but why not use a more sophisticated logging mechanism to keep track of which files have been uploaded and when?
缺省情况下,此脚本会将输出打印到提示处,不过您可以方便地通过管道命令使用此输出创建另一个日志文件。
By default, this script will print the output to the prompt, but you can easily pipe this out to create another log file.
cat (“concatenate”的缩写)命令在其输入上接受一个或多个文件并将它们作为一个单独的文件打印到它的输出。
The cat (short for "concatenate") command takes one or more files on its input and prints them to its output as a single file.
在清单4的Scilab代码内,一个示例图形被打印到一个JPEG文件。
In the Scilab code in Listing 4, an example graph is printed to a JPEG file.
在我们的代码中包括的一个重要实践就是使用了将语句打印到IntelligentNotificationServices记录文件中的操作。
One important practice we included in our code is the use of print statements to the Intelligent Notification Services log files.
LoggingStopWatch类用于在代码中添加计时语句并打印到标准输出或者日志文件中。
The org.perf4j.LoggingStopWatch class is used to add timing statements to code and print those statements to an output stream or log file.
应用程序应该不需要知道它们访问的是本地磁盘上的文件还是远程磁盘上的文件,也不需要知道它们正在打印到本地打印机还是远程打印机。
Applications should not need to know whether they are accessing a file on a local disk or a remote one or whether they are printing to an attached or remote printer.
例如,我们见过客户端将用户密码打印到跟踪文件中。
For example, we've seen clients that print user passwords to a trace file.
始终将完整路径打印到可执行文件中。
您也可以将发送者的pid保存下来,并将其打印到一个输出文件中,从而了解是哪些进程发送的信号。
You can also save the sender's pid and print it in a dump file to figure out who sent the signal.
tcpdump工具是一个比较老的工具,它从网上“嗅探”网络数据包,打印到stdout或记录在一个文件中。
The tcpdump tool is an older tool that "sniffs" network packets from a network and either prints them to stdout or logs them to a file.
短语 |&teelog 将bash 的stdout和stderrto 通过管道重定向到tee实用工具,后者将其stdin 打印到 stdout 和 文件log 中。
The phrase |&tee log pipes the stdout and stderr of bash to the tee utility, which prints its stdin to stdout and to the file log.
把每个文件中的各行被选中的部分打印到标准输出。
Print selected parts of lines from each FILE to standard output.
以下示例尝试打开文件并把内容打印到屏幕上。
Look at the following example, which tries to open a file and print its contents to the screen.
预期中想得到的是文件将会打印到最初的在打印机组列中能找到的非默认的打印机。
The expected behavior is that the document should print to the first non-default printer found in the printers collection.
预期中想得到的是文件将会打印到最初的在打印机组列中能找到的非默认的打印机。
The expected behavior is that the document should print to the first non-default printer found in the printers collection.
应用推荐