g[address1 [,
address2
]]g
Paste the contents of the hold space (see h and H ) back into the pattern space, wiping out the previous contents of the pattern space. The Example shows a simple way to copy lines. ExampleThis script collects all lines containing the word Item: and copies them to a place marker later in the file. The place marker is overwritten: /Item:/H /<Replace this line with the item list>/g |
|