Line editor
low risk
Classic line editor; useful in scripts for in-place edits. `ed` commands are read from stdin.
printf '%s\n' ',s/old/new/g' w q | ed -s fileReplace text in a file · explain & risk-check →Reference text is hand-written and may be incomplete — check man ed for your version. Test destructive commands on a non-production system first.