From: David Arroyo <droyo@aqwari.us>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Acme Edit scriptlets
Date: Fri, 5 Apr 2013 08:32:27 -0400 [thread overview]
Message-ID: <CA+G-0GYhWSmj=vpmhSCaYC2JAUNeM8GW0GLmvZx+vGDQ3UW0Hg@mail.gmail.com> (raw)
In-Reply-To: <CAOCRf5VyS-3SsZ6N8mSv3Z0WHm4ESGO6z44NaLUY3HsxXG1VBQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1114 bytes --]
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=val1
% var2=val2
...
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ábián <begnoc@gmail.com> wrote:
> whoa. nice job.
>
>
>
> 2013/4/4 erik quanstrom <quanstro@quanstro.net>
>
>> 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
>>
>>
>
[-- Attachment #2: Type: text/html, Size: 2342 bytes --]
prev parent reply other threads:[~2013-04-05 12:32 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-29 0:38 Bence Fábián
2013-03-29 1:19 ` phineas.pett
2013-03-29 8:22 ` Peter A. Cejchan
2013-03-29 8:20 ` dexen deVries
2013-03-29 8:25 ` Peter A. Cejchan
2013-03-29 8:48 ` dexen deVries
2013-03-29 9:50 ` Richard Miller
2013-03-29 16:20 ` Skip Tavakkolian
2013-04-04 10:19 ` Mark van Atten
2013-04-04 12:08 ` dexen deVries
2013-04-04 12:16 ` Bence Fábián
2013-04-04 12:28 ` erik quanstrom
2013-04-04 13:01 ` Bence Fábián
2013-04-04 13:04 ` [9fans] Acme script request (was: Acme Edit scriptlets) dexen deVries
2013-04-04 13:17 ` Bence Fábián
2013-04-05 12:35 ` Martin Kühl
2013-04-05 12:50 ` dexen deVries
2013-04-05 12:32 ` David Arroyo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+G-0GYhWSmj=vpmhSCaYC2JAUNeM8GW0GLmvZx+vGDQ3UW0Hg@mail.gmail.com' \
--to=droyo@aqwari.us \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).