>_ IzzyLab

Topic breakdown

Besides substitution s/.../.../, sed has commands that work on the whole line, and one of them deletes the current line. Any command can be restricted with an address: if it's a regular expression in slashes, the command runs only on lines that matched the pattern. By default sed prints everything it didn't delete, so it's enough to redirect the result to the desired file.

What's checked

  1. lines with DELETE are removed

What it looks like