From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <7077422.iSNQ4AhyB3@coil> References: <8dccd34ac2758fcedaf1481352b73342@brasstown.quanstro.net> <7077422.iSNQ4AhyB3@coil> Date: Thu, 4 Apr 2013 15:17:38 +0200 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=bcaec50fe26b728d3e04d988cb50 Subject: Re: [9fans] Acme script request (was: Acme Edit scriptlets) Topicbox-Message-UUID: 3d949378-ead8-11e9-9d60-3106f5b1d025 --bcaec50fe26b728d3e04d988cb50 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable for (dir in `{grep -l '^'$pattern /mnt/acme/[0-9]*/tag | sed 's/tag//'}){ echo delete >$dir/ctl } where $pattern is the pattern you want to match 2013/4/4 dexen deVries > an Edit script, or an Rc script for Acme, to close all windows which name= s > start with given (literal) prefix. > > use case: several files and directories of two projects open in one Acme > instance. want to close all windows related to one of the projects, and > leave > the other project's windows open. > > -- > dexen deVries > > [[[=E2=86=93][=E2=86=92]]] > > > --bcaec50fe26b728d3e04d988cb50 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
for (dir in `{grep -l '^'$pattern /mnt/acme/[= 0-9]*/tag | sed 's/tag//'}){
echo delete >$dir/ctl
}

<= /div>
where $pattern is the pattern you want to match


2013/4/4 dexen deV= ries <dexen.devries@gmail.com>
an Edit script, or an Rc script for Acme, to= close all windows which names
start with given (literal) prefix.

use case: several files and directories of two projects open in one Acme instance. want to close all windows related to one of the projects, and lea= ve
the other project's windows open.

--
dexen deVries

[[[=E2=86=93][=E2=86=92]]]



--bcaec50fe26b728d3e04d988cb50--