您还可以将包含某个模式的整个行替换为某些新文本。
You can also replace an entire line that contains a pattern with some new text.
对于Cancel按钮,要删除现有代码并用submit脚本中的最后一行代码替换它。
For the Cancel button, you want to remove the existing code and replace it with the last line from the Submit script.
在本例中,特殊替换形式对于每一行来说都将是相同的printf,因此它将在第二个for循环开始之前被预先存储到FORMATTER变量中。
In this example, the special replacement form will be the same printf for every line, so it is pre-stored in the FORMATTER variable before the second for loop begins.
应用推荐