>_ IzzyLab

Topic breakdown

Selecting lines by length can be solved two ways. The text processor awk gives line length as a built-in function and lets you compare it against a threshold directly — that's the most readable path. The regex path via grep -E relies on the fact that the dot . matches any character, while "no fewer than N characters in a row" is set with a counting quantifier with a lower bound and a comma {N,} (without the comma it would be "exactly N"). Start and end anchors aren't required with this approach: it's enough to find the right number of consecutive characters anywhere in the line.

What's checked

  1. Long lines selected
  2. Short lines filtered out

What it looks like