From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18197 invoked from network); 16 Jan 2023 03:49:45 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 16 Jan 2023 03:49:45 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id F301035283 for ; Sun, 15 Jan 2023 22:49:43 -0500 (EST) (envelope-from bounce.mM3eb35eb0b706b85667532f19.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id F01D7964801; Sun, 15 Jan 2023 22:49:43 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=from:to :message-id:date:mime-version:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:subject:list-unsubscribe; s=dkim-1; t= 1673840983; x=1673927383; bh=UZgXUBK0xfpLpFVdWHXOBvJ9AvDM4jOCHjX 9WFvEOwg=; b=O7nGVMo3npOcOXa4wqv85RSK83wTZvqzrws9Z2djZj/B+i2l4hM sU2Gtw6ICxMnSmOgWp9bxGN+Fd3gsnBGs2MajoaFdT7ju7cWL0Lhou/55Z440UoR HSelCC3oWywvAVwItMEkqorGzG5oSuoFLYsWoFvVoaz6x8F13/C81mss= From: revrari@mweb.co.za To: 9fans <9fans@9fans.net> Message-Id: <16738409770.1dB0AB2c.445654@composer.9fans.topicbox.com> Date: Sun, 15 Jan 2023 22:49:37 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=16738409771.BDF3.445654 Content-Transfer-Encoding: 7bit Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: cc7bc644-9550-11ed-8c2d-df3a212d11b0 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYWY0MDg3NTFiYzZmYjM0NC1NM2ViMzVlYjBiNzA2Yjg1NjY3NTMy?= =?UTF-8?B?ZjE5Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Subject: [9fans] Script to apply Edit commands in acme List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M3eb35eb0b706b85667532f19:1:oEloVOutHO8mOjC8mK27v5-NgospLkA0YmPGmxIm1J8 --16738409771.BDF3.445654 Date: Sun, 15 Jan 2023 22:49:37 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In sam I can create a script file consisting of a list of edit commands to = apply to the document. I then invoke *,| ssam -f my_script *to apply it. I would like to do something similar in acme. For example, create a script with these two commands to cleanup whitespace: Edit ,x/^ +/d Edit ,x/ +$/d I would like to know if such a script would require the regular #!/bin/rc h= eading, and how it would be invoked from within acme. I tried to do somethi= ng in my scripts folder, but it did not work. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-M3eb35= eb0b706b85667532f19 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --16738409771.BDF3.445654 Date: Sun, 15 Jan 2023 22:49:37 -0500 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In sam I can create a script file consisting o= f a list of edit commands to apply to the document. I then invoke ,| ssa= m -f my_script to apply it.
I would like to do somethin= g similar in acme.
For example, create a script with these = two commands to cleanup whitespace:
Edit ,x/^ +/d
Edit ,x/ +$/d
I would like to know if such a script = would require the regular #!/bin/rc heading, and how it would be invoked fr= om within acme. I tried to do something in my scripts folder, but it did no= t work.


= --16738409771.BDF3.445654--