>_ IzzyLab

Topic breakdown

Normally sed prints the result to the stream and doesn't touch the source file. The -i (in-place) flag makes it overwrite the file itself with the processed result — no separate output file needed. Inside, you use an ordinary substitution command to replace the desired value; handy for targeted config edits.

What's checked

  1. port changed to 8080
  2. the rest is untouched

What it looks like