| D | Delete text in the pattern space up to the first newline |
| N | Add a newline to the pattern space, then append the next line of input to the pattern space |
| P | Print out the portion of the pattern space up to the first newline |
| h | Replace the contents of the hold space with the contents of the pattern space |
| H | Append a newline to the contents of the hold space, and then append the contents of the pattern space to that of the hold space |
| g | Replace the contents of the pattern space with the contents of the hold space |
| G | Append a newline to the contents of the pattern space, and then append the contents of the hold space to that of the pattern space |
| x | Exchange the contents of the hold and pattern spaces |