From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <82380754-4ab1-4c31-b696-0b9c604ec2c9@googlegroups.com> <8dccd34ac2758fcedaf1481352b73342@brasstown.quanstro.net> Date: Fri, 5 Apr 2013 08:32:27 -0400 Message-ID: From: David Arroyo To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7b2edc09ade6a304d99c47f9 Subject: Re: [9fans] Acme Edit scriptlets Topicbox-Message-UUID: 3ebe8ec0-ead8-11e9-9d60-3106f5b1d025 --047d7b2edc09ade6a304d99c47f9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I took the template.awk script from werc[0] and use it in acme all the time. I've a collection of template files beginning with Edit ,|tpl % var1=3Dval1 % var2=3Dval2 ... I can execute line 1 to generate stuff like Makefiles, man pages, puppet manifests, etc.[1] [0]: http://hg.cat-v.org/werc/file/50a9b770bb43/bin/template.awk#l1 [1]: http://aqwari.us/notes/werctpl On Thu, Apr 4, 2013 at 9:01 AM, Bence F=E1bi=E1n wrote: > whoa. nice job. > > > > 2013/4/4 erik quanstrom > >> On Thu Apr 4 08:17:13 EDT 2013, begnoc@gmail.com wrote: >> >> > Cool. >> > >> > >> > Here's a script i use to generate case >> > insensitive regexes. It turns >> > >> > FooBar >> > >> > into >> > >> > [Ff][Oo][Oo][Bb][Aa][Rr] >> >> see also rune(1), http://9atom.org/magic/man2html/1/rune >> which generalizes this idea to all of unicode (rune/case), >> and also to diacritical and other markers (rune/fold; rune/unfold). >> for the latter also see grep(1)'s -I flag, >> http://9atom.org/magic/man2html/1/grep >> >> - erik >> >> > --047d7b2edc09ade6a304d99c47f9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I took the template.awk script from werc[0] and use it in = acme all the time. I've a collection of template files beginning with
=A0 =A0 Edit ,|tpl
=A0 =A0 % var1= =3Dval1
=A0 =A0 % var2=3Dval2
=A0 =A0 ...

I can execute line 1 to generate stuff like Makefile= s, man pages, puppet manifests, etc.[1]



On Thu, Apr 4, 2013 at 9:01 AM, Bence F=E1bi=E1n <begnoc= @gmail.com> wrote:
whoa. nice job.



2013/4/4 erik quanstrom <quanstro@quanstro.= net>
On Thu Apr =A04 08:17:13 EDT 2013, begnoc@gmail.com wrot= e:

> Cool.
>
>
> Here's a script i use to generate case
> insensitive regexes. It turns
>
> FooBar
>
> into
>
> [Ff][Oo][Oo][Bb][Aa][Rr]

see also rune(1), http://9atom.org/magic/man2html/1/rune
which generalizes this idea to all of unicode (rune/case),
and also to diacritical and other markers (rune/fold; rune/unfold).
for the latter also see grep(1)'s -I flag, http://9atom.org/magic/man2html/1/= grep

- erik



--047d7b2edc09ade6a304d99c47f9--