>_ IzzyLab

Topic breakdown

By default sed prints every line, but the -n flag turns off auto-printing — now output happens only on an explicit print command. Combined with a pattern address this gives grep-like behavior: only the lines matching the pattern are printed. The ^ anchor ties the match to the start of the line, which matters when you need lines that actually start with the text rather than just containing it.

What's checked

  1. only the error: lines are output

What it looks like