Listing 3: Printing a range of lines.
清单3:打印一系列行。
Listing 4: Printing a numeric range of lines more efficiently.
清单4:更有效地打印数字范围中的行。
AlignAssignments then locates the range of lines on which it will operate.
AlignAssignments随后查找它将对其进行操作的行范围。
In addition to operating on individual lines, sed can operate on a range of lines.
除了操作单独的行外,sed还可以操作一个行范围。
It grabs the specified range of lines from the buffer with a getline and iterates through each.
它通过getline从缓冲区获取代码的指定范围,并对各项进行迭代。
As before, they locate the range of lines whose assignments are to be aligned, based on the current indentation of the text.
和原来一样,它们根据文本的当前缩进来定位需要对其的行的范围。
The Uniq function is declared to take a range, so it will only be called once, even when invoked on a range of lines in the buffer.
Uniq函数被声明为接受一个范围,因此只能调用一次,即使在缓冲区内的一个行范围上调用时。
Then, the: swaps you to command mode and automatically sets the command's range to the range of lines you just selected in Visual mode.
之后,:将您切换到Command模式并自动将命令范围设置为刚刚从Visual模式选择的行的范围。
Once you have a function call that can operate on a range of lines, a particularly useful technique is to call that function via Visual mode (see: help Visual-mode for details).
一旦拥有了一个可以操作行范围的函数调用后,一个特别有用的技巧就是通过Visual模式(参见:help Visual - mode获得更多细节)调用该函数。
Given an address or a range of addresses, you can group several commands between curly braces, {and}, to have these commands operate only on lines selected by the range.
对于一个地址或一个地址范围,可以在大括号{和}之间对命令进行分组,使这些命令只用于按范围选择的行。
Once the location and width of the alignment zone have been determined, all that remains is to iterate through the lines in the range and reformat them accordingly.
一旦确定了赋值区域的位置和宽度,剩下的就是遍历范围中的行并相应地执行重新格式化。
It could also be wc, which would result in a display of the number of lines, words, and characters contained in the selected range of pages.
“other_command”的示例也可以wc,它会显示选定范围的页中包含的行数、字数和字符数。
Or you could apply it to a specific set of lines (for example, a range that had been selected in Visual mode), like so.
或者您可以将其应用到一个代码的特殊集中(例如,一个在Visual模式中选定的范围),就像这样。
Now, let's look at how to specify an address range. In this example, sed will delete lines 1-10 of the output.
现在,让我们看一下如何指定地址范围。
In a more realistic example, a few more lines of code would manage a range of different hosts, and perhaps different accounts and login protocols for each.
在一个更实际的示例中,可以通过更多行的代码来管理各个不同的主机,对每个主机使用不同的帐号和登录协议。
The changes begin in the third code block, which USES the two-argument form of the built-in getline function to return a list of all the lines in the range to be realigned.
从第三个代码块开始发生变化,它使用内置的getline函数的双参数形式来返回需要重新对齐的行的列表。
It is designed for high efficiency and is ideal for lines of this output range.
它是专为高效率,是为这个理想的输出范围线。
There are three ultra narrow spectral lines in the spontaneous emission spectra from upper level to lower lying levels of the two emission channels, which occur over a wide range of the parameters.
从上能级向两边下能级辐射的自发辐射谱中产生了三个超窄谱线,且在很大参数范围内光谱具有这一特性。
Good wave spectrum lines only could be acquired with all those techniques which ensure the value of full width at half maxium to be within the given range of the system.
只有尽一切技术手段使得半高宽在系统提示的范围之内,才有可能获得好的谱线。
The method to modify the shape of the equivalent lines in a certain range of the weather chart is introduced.
此方法是在修改某一条等值线形状的同时修改原始数据,使其余的等值线相应地得到修正。
This technology can provide a very low determination limit, a very wide range of dynamic linear, simple lines, less interference, high-precision and fast analysis and isotopic information, and so on.
该技术提供了极低的检出限、极宽的动态线性范围、谱线简单、干扰少、分析精密度高、分析速度快以及可提供同位素信息等分析特性。
The first two lines of output should be 6 and 28. Your program should find two other perfect Numbers in that range as well.
前两行输出时6和28。你的程序应该能够在上面的范围内找出另外的两个完美数字。
The company is automated production lines, in the same industry leading level, the full range of products, fashionable, quality and quantity, the majority of customers.
本企业为自动化生产流水线,在同行业中属领先水平,生产的产品品种齐全,款式新颖,保质保量,深受广大客户的欢迎。
Weifang, Shandong Province Gaomi wig distributors established in 2006, wholesale all kinds of hair, color and range, low-cost production of high quality is our consistent principle lines wig!
山东省潍坊假发经销处成立于2006年,批发各式各样假发,花色和品种齐全,低价位高质量是我们生产假发流水线的一贯原则!
The use of Eaton's FC NVH solution can be applied in applications which range from power steering lines, to hydraulic pumps, to active ride systems.
使用伊顿的FCNVH解决方案可以应用在申请范围从动力转向系,液压油泵,积极骑系统。
These new lines of commercial lighting products offer a broad range of high-quality lighting solutions at a great value that makes lighting decisions easy.
商业照明产品的这些新线在巨大的价值,使照明决策容易提供广泛的高品质的照明解决方案。
By the principle of the removing the hidden lines and surfaces, the advantages, disadvantages and the range of application of algorithms for removing the hidden lines and surfaces are analyzed.
根据图形消隐的基本原理,概述了当前在三维图形处理中最主要的物体空间消隐算法和图象空间消隐算法,对各种算法的优缺点和适用范围作了总结和比较。
The asymmetrical, heart-shaped cage, wrought from interconnecting lines of sterling silver is an edgy and offbeat symbol of love. Making a striking new addition to our popular charm range.
以银丝线互相交织而成的不对称心形盒子是爱情的标记,为吊饰系列加上新款色。
The temporal synchronization of the lines is controlled by rotating the gratings within a narrow range for varying their losses.
通过对两个光栅做小幅度失谐调整,可以实现两束激光脉冲同步输出。
The temporal synchronization of the lines is controlled by rotating the gratings within a narrow range for varying their losses.
通过对两个光栅做小幅度失谐调整,可以实现两束激光脉冲同步输出。
应用推荐