[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to send lines of a shell script directly to the shell
From: |
tomas |
Subject: |
Re: how to send lines of a shell script directly to the shell |
Date: |
Sun, 16 Apr 2023 11:05:38 +0200 |
On Sun, Apr 16, 2023 at 10:53:54AM +0200, Uwe Brauer wrote:
>
>
> Hi
>
> I have to execute a series of commands like
>
> git checkout strings
> mygit-push-named-branch strings
> etc
>
> It is a list of these commands in a file. I can call
> M-x shell
>
> And then copy each line to the shell where it is executed.
>
> Is there any faster way, a command like
> execute this line via the shell.
>
> I googled but cannot find anything.
Ask your Emacs, not Google. Emacs is your friend, Google isn't :)
c-h a (apropos) shell suggests shell-command-on-region, usually
bound to M-|
(of course, you'd have to mark the line; automating that is left
as an...)
Cheers
--
t
signature.asc
Description: PGP signature