From: Travis Spencer <travislspencer@gmail.com>
To: zsh-users@sunsite.dk
Subject: Re: Help parsing a file from one regex to another
Date: Fri, 8 Jul 2005 12:24:35 -0700 [thread overview]
Message-ID: <e3b7bac05070812243c218646@mail.gmail.com> (raw)
In-Reply-To: <1050708171627.ZM16747@candle.brasslantern.com>
On 7/8/05, Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Jul 8, 5:30pm, Doug Kearns wrote:
> > flags=( ${=${${${(f)"$(<$tmp_file)"}[(r)@main::FLAGS*,(r)\);]}#*\"}//[^[:upper:][:blank:]]/} )
> So to put the whole thing together:
>
> flags=( ${${$(sed -n -e '/^@main::FLAGS.*)/{p;q;}' -e '/^@main::FLAGS/,/)/p' <$tmp_file)}//[^[:upper:]]/} )
> shift flags # Throw away the word "FLAGS" from @main::FLAGS
>
Thanks Bart and Doug for your replies. They were both really helpful.
--
Regards,
Travis Spencer
Portland, OR USA
next prev parent reply other threads:[~2005-07-08 19:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-08 6:36 Travis Spencer
2005-07-08 7:30 ` Doug Kearns
2005-07-08 17:16 ` Bart Schaefer
2005-07-08 19:24 ` Travis Spencer [this message]
2005-07-09 6:41 ` Doug Kearns
2005-07-09 17:16 ` Bart Schaefer
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=e3b7bac05070812243c218646@mail.gmail.com \
--to=travislspencer@gmail.com \
--cc=zsh-users@sunsite.dk \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).