The ed text editor does not allow you to filter lines of the buffer
through external commands using the ! command. What you can do is to
read the output of a command and append the output to a specific
address within the text. The general solution is to use a temporary file to hold the output of the command, and then read that file into
the buffer at the desired location.