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