Paste the contents of the hold space (see
into the pattern space, wiping out the previous contents of the pattern space.
The example shows a simple way to copy lines.
This script collects all lines containing the word
and copies them to a place marker later in the file.
The place marker is overwritten.
/<Replace this line with the item list>/g