ed Command Examples

The original Unix text editor. See also: awk, sed. More information: https://www.gnu.org/software/ed/manual/ed_manual.html.

ed

ed {{[-p|--prompt]}} '{{> }}'

ed {{[-v|--verbose]}}

ed {{[-q|--quiet]}} {{[-s|--script]}}

ed {{[-l|--loose-exit-status]}}

ed {{path/to/file}}

,s/{{regular_expression}}/{{replacement}}/g<Enter>

q<Enter>