Find and Replace in a Stream: sed

sed changes text as it flows past, replacing words with s/old/new/g and deleting lines with d, and sed -i.bak changes the files themselves while keeping a backup of each one.

Updated

Cheat sheet for the lesson Find and Replace in a Stream: sed: sed changes text as it flows past, replacing words with s/old/new/g and deleting lines with d, and sed -i.bak changes the files themselves while keeping a backup of each one.
Category
Bash
Level
Journeyman
Tags
in-place-editing, linux, regular-expression-in-the-shell, sed, unix