From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: how to send lines of a shell script directly to the shell Date: Sun, 16 Apr 2023 12:31:24 -0300 Message-ID: References: <87h6tgyzq5.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39194"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 16 17:32:22 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1po4MY-0009ze-4O for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 16 Apr 2023 17:32:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1po4Lv-0004lm-Sb; Sun, 16 Apr 2023 11:31:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1po4Lt-0004lP-Od for help-gnu-emacs@gnu.org; Sun, 16 Apr 2023 11:31:41 -0400 Original-Received: from mail-yw1-x1133.google.com ([2607:f8b0:4864:20::1133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1po4Ls-0005xx-3b for help-gnu-emacs@gnu.org; Sun, 16 Apr 2023 11:31:41 -0400 Original-Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-552ae3e2cbeso23379347b3.13 for ; Sun, 16 Apr 2023 08:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681659098; x=1684251098; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=SeJycIpBxIeyf9v3gbkoJFkzJT++EjjRwCgSIuB1khE=; b=Fn4SKWCPz3MvyRp5PxiLv0pYhjuv2XJ3WE9q/zAgtW15KouoIlZ/NFrsT54SX4sTfW JHYSr/llFDL28ejcz5Nzh4Eux7KSX0F2n91COl6UD1OVW3s+4jObszAJyLVtuQIM+xoy I6SAY92yUGq/Ul9bR6cOs4MUaMZeRUGWzEn+A3+KWlqF7ZBeydFKjLWpcvfZlUHCjbPi Cfc6aBJuWPpdpiZxMN78Vi6cr7B1Rz3CU6mE4saBG+emdtQ6P289ZcQrRD+a2Y6usQON ywH6MlTRiWEskL3oqOK9mozDrT33sSF5lGBa7FbC5ivDLBCuRbLOQiqHU9zTx7OtpqFL yzLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681659098; x=1684251098; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SeJycIpBxIeyf9v3gbkoJFkzJT++EjjRwCgSIuB1khE=; b=jFAJEWc51Tp70ya5XvW0dSi3ykmHEKzsJvgGWhA3oiV7ff7WMk31JN1470eLP+PpAa 4qCm/QHiEf8HuLdmUl7/UJuEBWuMUO31RKAUH3csypTA3YTUUDbo1XA5arboXgMLD0+B 5rbjgmttX9IhTRBDYf1gM2M+FgbL6wrg/UUn7p4JDWEl+IqZHjR5OyofMuzn4Q+f5Y3+ SDR9n76/QlzTI0UmJjj81qQvqRHQ0cTzsygrF69leG/E8mRE+cFkbi0u+lyjIRsbpcI7 xg2v8HRaLA9hz7+7tshHZkIXR8/bkazgef0ktC4ZU0YNGajKwvV/Chu2/zaTMrvFl0n3 FDgA== X-Gm-Message-State: AAQBX9fEeY2OzeZounqXUY1/AoARAI1g6aXx3IfRBCLSd+S9FZCz9LNi VyZOW8gAMqrAQZYDkNkaUgv79k67YybipcYTK7aJ/ztBBo8= X-Google-Smtp-Source: AKy350ZJunG0iZ53DHDuUu22+OZxjBnqtIc0rpwob+xurV4qo1AL64NMGvbH+8P56xJGwvzohEkMUoCXwVYYzlUsSj8= X-Received: by 2002:a81:4307:0:b0:545:f7cc:f30 with SMTP id q7-20020a814307000000b00545f7cc0f30mr7506976ywa.0.1681659097763; Sun, 16 Apr 2023 08:31:37 -0700 (PDT) In-Reply-To: <87h6tgyzq5.fsf@mat.ucm.es> Received-SPF: pass client-ip=2607:f8b0:4864:20::1133; envelope-from=eduardoochs@gmail.com; helo=mail-yw1-x1133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143293 Archived-At: On Sun, 16 Apr 2023 at 05:54, 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. > > Regards > > Uwe Brauer Hi Uwe, take a look at this too: http://anggtwu.net/eepitch.html http://anggtwu.net/eepitch.html#trying-it http://anggtwu.net/emacsconf2021.html The instructions at the "Trying it" are very simple and there's a very nice demo in the first 30 seconds of my presentation at the EmacsConf2021. The easiest way to watch it with subtitles is here, http://www.youtube.com/watch?v=qM0Luz78qGw and the easiest way to create the 3-line block that sets up the target buffer is explained here: http://anggtwu.net/eev-intros/find-eev-quick-intro.html#6.3 Cheers =), Eduardo Ochs http://anggtwu.net/#eev