Selection is the process of specifying the group of lines upon which some operation is to take place. Selections may be contiguous, i.e., the selection consists of consecutive line numbers, or selections may be discontiguous.
The following commands are used to select lines:
The Selection commands can be intermixed in a number of ways to achieve the desired selection. For example, you can use the Select command to explicitly select a group of lines and then use the SelectPattern command to select the group of lines containing a specific search pattern. The resulting selection then is the combination of the lines selected by the Select command and the lines selected by the SelectPattern command.