Ravi Sir's Cards › AWS
Is sed -i safe in prod?
This interview card answers: Is sed -i safe in prod? It overwrites the file. Test without -i, keep.bak. Edit with backup.
Read card text
What this card says
What it is
It overwrites the file.
Why it matters
Test without -i, keep .bak.
How / example
Edit with backup.
sed -i.bak 's/a/b/' app.conf