Modify the original file directly.
Section: sed Substitution
Edit a file in place
bash
bash
sed -i 's/debug/info/g' app.confExplanation
In-place editing is powerful; consider keeping backups before bulk changes.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing sed Substitution