Ravi Sir's Cards › AWS
sed -i on prod is risky?
This interview card answers: sed -i on prod is risky? Preview without -i. Keep a backup. Compare.
Read card text
What this card says
What it is
Preview without -i.
sed "s/old/new/" f
Why it matters
Keep a backup.
sed -i.bak "s/old/new/" f
How / example
Compare.
diff f.bak f