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还可以操作一个行范围。
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函数被声明为接受一个范围,因此只能调用一次,即使在缓冲区内的一个行范围上调用时。
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函数被声明为接受一个范围,因此只能调用一次,即使在缓冲区内的一个行范围上调用时。
应用推荐