help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running a shell script command, paste output above selection?


From: Stefan Monnier
Subject: Re: Running a shell script command, paste output above selection?
Date: Tue, 12 Mar 2024 23:08:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

> I know that I can use `M-|` to run a shell script command. I can also use
> `C-u M-|` to run a shell script, pipe the selection as input and have it
> replace my selection.
>
> However, I'm wondering if there is a built in way to run a command,
> pipe the selection to a shell script, then paste the output of the
> command above or below the selection?

I guess you can do:

    M-w C-y C-x C-x     ; Duplicate the region to keep a copy
    C-u M-|


-- Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]