>_ IzzyLab

Topic breakdown

The substitution command in sed replaces text by pattern, but by default it triggers only on the first occurrence in each line. To replace all matches on a line, you add the global-replace flag to the substitution command. sed itself doesn't change the file — it writes the result to standard output, so you direct the result into a new file via redirection.

What's checked

  1. all occurrences replaced

What it looks like