The following rules apply to addressing in sed. There are two ways to select the lines in the input file to which editing commands are to be applied: with line numbers or with ``context addresses''.