Pick up and put down

This section describes the pick up and put down.

Function Syntax/Description
pick up copy [Line1 [,Line2] ]h

Copies the contents of the pattern space indicated by Line1 and Line2 if present, to the holding area.

pick up copy, appended [Line1 [,Line2] ]H

Copies the contents of the pattern space indicated by Line1 and Line2 if present, to the holding area, and appends it to the end of the previous contents of the holding area.

put down copy [Line1 [,Line2] ]g

Copies the contents of the holding area to the pattern space indicated by Line1 and Line2 if present. The previous contents of the pattern space are destroyed.

put down copy, appended [Line1 [,Line2] ]G

Copies the contents of the holding area to the end of the pattern space indicated by Line1 and Line2 if present. The previous contents of the pattern space are not changed. A new-line character separates the previous contents from the appended text.

exchange copies [Line1 [,Line2] ]x

Exchanges the contents of the holding area with the contents of the pattern space indicated by Line1 and Line2 if present.