| 1. | And append it to our current pattern space ,然后将其附加到当前模式空间。 |
| 2. | We ll gradually refine the contents of the pattern space as we go 我们将在进行过程中逐渐细化模式空间的内容。 |
| 3. | If the pattern space matches the regexp , sed will branch to the fixnegs label 如果模式空间与规则表达式匹配, sed将分支到fixnegs标号。 |
| 4. | Before the d , and the contents of the pattern space three lines are printed to stdout )以及将模式空间的内容(三行)打印到标准输出之外,重复同样的步骤。 |
| 5. | This regexp will match the entire contents of the three lines we just appended to the pattern space 这个规则表达式将与刚刚附加到模式空间的三行的全部内容匹配。 |
| 6. | Sed s pattern space got ugly - we need to remove the extra newlines and perform some additional formatting Sed的模式空间变得很难看- -需要除去额外的新行,并执行某些附加的格式化。 |
| 7. | Note the new - n option , which tells sed to not print the pattern space unless explicitly commanded to do so 请注意新的- n选项,该选项告诉sed除非明确要求打印模式空间,否则不这样做。 |
| 8. | All of the commands in the curly braces will execute in order as soon as sed reads such a line into its pattern space 当sed将这样一行读入其模式空间时,将按顺序执行花括号中的所有命令。 |
| 9. | For the last " oni " line , the same steps are repeated , except that the contents of the pattern space aren t deleted due to the 对于最后的" oni "行,除了不删除模式空间的内容(由于d之前的$ |
| 10. | The three n commands cause the next three lines to be appended to our current pattern space buffer , and now our line looks like this 这三个n命令导致将下三行附加到当前模式空间缓冲区,现在这一行看起来如下: |