Ravi Sir's Cards › AWS
sed vs sed -i
This comparison card contrasts sed and sed -i. sed is described as prints to screen. sed -i is described as changes the file.
Read card text
What this card says
Output
sed
Prints to screen.
sed -i
Changes the file.
Key points
Safe preview.
Use .bak to undo.
Example
sed 's/a/b/' f
Use when
Testing.
Real change.