最后一行打印QueryPath对象中匹配项的数量,最终打印的结果为4。
The last line, which prints the number of matched items in the QueryPath object, will print 4.
第二行打印出了book的值 --ProgrammingScala。
The second line prints the value of book, which is “Programming Scala”.
该选项告诉tail打印指定文件的最后10行,但是它不仅打印已有的内容,还会等待该文件中将要出现的更多内容,并对其进行打印。
This tells tail to print the last ten lines of the specified file but, instead of exiting, it waits for more text to appear in the file and prints it as it appears.
事实上,每条记录可以打印为三行:一行打印name元素,一行打印地址的street元素,另外一行打印地址的city、state和zipcode元素。
In fact, each record can be printed with a line for the name components; a line for the street component of the address; and a line for the city, state, and zip code components of the address.
使用某种格式打印每个行以显示联系人细节。
Print each row with some formatting to display the contact details.
如果本地文件没有被上载过或者比远程文件要新的话,打印一行文字说明文件将被上载。
If the local file has not yet been uploaded or is newer than the remote file, print a line indicating that the file is being uploaded.
第8行中的打印语句也是前面讨论过的字符串格式操作。
The print statement in Line 8 is another of those string formatting operations that was discussed earlier.
我寻找构成所寻找模式的正则表达式,然后使用注入的特殊消息来打印该磁盘报告行。
I look for a regular expression that makes the pattern I am looking for, and then print the line of the disk report with a special message that gets injected.
清单4:更有效地打印数字范围中的行。
Listing 4: Printing a numeric range of lines more efficiently.
在这里您可以使用- u选项来禁止打印相同的行。
You can use the -u option here to suppress printing of identical lines.
grep的最简单应用是打印那些包含与某个模式匹配的文本的行。
In its simplest use, grep prints those lines that contain text that matches a pattern.
您还可以用- u选项来禁止打印相同的行。
You can also suppress printing of identical lines with the -u option.
一个进度条不应该是打印100行,只是更新它的状态,一般地,我们,想看到一点生机。
A progress bar is not supposed to print one hundred lines just to update its status; generally we like to see a little animation.
grep实用工具不支持捕获,因为其目标是打印包含模式的行。
The grep utility does not support capture, because its purpose it to print lines containing a pattern.
我再次指明,打印参数的新行。
清单3:打印一系列行。
用一行代码打印%ENV内容。
tail工具打印每个文件的最末尾部分的内容(默认是10行)。
The tail utility prints the last part of each file (10 lines by default).
第二个print语句用于打印新行,从而使乘法表中的下一行被打印在新的行中。
The second print statement is used to print a newline so that the next row in the times table is printed on a new line.
head工具打印每个文件的最开始部分的内容(默认是10行)。
The head utility prints the first part of each file (10 lines by default).
此循环迭代这个数组并打印每一行,与它在命令行上所做的无异,只不过在每次打印后均强制使用一个xhtml断行元素。
The loop simply iterates through the array and prints each line as it would do on the command line, but enforcing an XHTML break-line element after each print.
仅这台虚拟打印机就拥有大约 500行属性。
This virtual printer alone has almost 500 lines of attributes.
出于教学目的,我们把此任务分在三个线程中:一个线程打印人名,一个线程打印空格,一个线程打印姓和一个新行。
For educational purposes, we've split this task among three threads: one prints the first name, one prints a space, and one prints the surname and a new-line.
您永远不应立即运行一行程序;在您真正运行命令之前应该总是先打印出该命令会执行什么内容。
You should never run a one-liner outright; always print out what it will do before you actually run the command.
第25- 34行-如果文件符合模式,则打印文件的详细信息。
Line 25-34 - Prints the details of the file, if the file matches the pattern.
如果没有后面的逗号,字符将全部打印在单独的行中,会很难读。
Without the trailing comma, the characters would all be printed on separate lines -- which would be a lot harder to read).
我们需要确保程序总是打印报告的每一行,从不遗漏。
We need to verify that the program always prints every line of the report and never skips a line.
在此情况下,为了使打印头移至下一页的页首,打印机实际上必须打印许多新行。
In this case, the printer actually has to print that many newlines in order to make the print head move to the top of the next page.
注意:在上面的例子中,代码通常作为单独的连续行出现,但为了便于设置格式和打印,将它分成了多行。
Note: in the preceding code example, the code normally appears as a single continuous line. In this instance, the lines of code are split into multiple lines for ease of formatting and printing.
注意:在上面的例子中,代码通常作为单独的连续行出现,但为了便于设置格式和打印,将它分成了多行。
Note: in the preceding code example, the code normally appears as a single continuous line. In this instance, the lines of code are split into multiple lines for ease of formatting and printing.
应用推荐