|
|
There are several commands for editing text in ed:
If you prefix this command with a range of addresses, each line in the range is searched and the first instance of old on each line is replaced with new. For example, ,s/foo/bar/g replaces every instance of ``foo'' on every line by the string ``bar''.