Sample Header Ad - 728x90

Is it possible to filter a set of lines through an external command in ed?

2 votes
3 answers
165 views
In ed, one can retrieve the output of a command into the current buffer by using r !COMMAND. One can also write a set of lines to the input of a command by using 1,3w !COMMAND. However, I cannot determine how to do both simultaneously. r 1,3w !sort 1,3w !sort: No such file or directory **Is it possible to do this in ed?**
Asked by merlin2011 (4139 rep)
May 18, 2018, 05:47 PM
Last activity: Jul 23, 2025, 07:44 AM