From: "Tim Morley (forstreku la legoman koloron de mia retadreso)" <t_morley@argonet.rapkolora.co.uk>
Subject: Re: PO-mode help, please
Date: Tue, 22 Feb 2005 22:44:18 GMT [thread overview]
Message-ID: <6BOSd.152$AY3.131@newsfe3-win.ntli.net> (raw)
In-Reply-To: <381gpvF5gbnrbU1@individual.net>
Kevin Rodgers wrote:
> Tim Morley wrote:
> > I need to find each record that includes the comment below:
> > ...
> > If somebody could suggest either an EMACS keyboard macro, or possibly a
> > SED or AWK script, that would spit out a text file containing all of the
> > above records from my collection of files, it would be a great help
> to me.
>
> I think awk is the way to go:
>
> awk '/^#/ {comment[c++] = $0}
> /^# FAKVORTO: MATEMATIKA/ {verify = 1}
> /^msgid/ {msgid = $0}
> /^msgstr/ {if (verify == 1) {
> for (l=0; l<c; l++)
> print comment[l]
> print msgid
> print
> }
> c = 0
> verify = 0}'
>
Sterling work, sir! Thanks aplenty for that. All strings now extracted
and winging their way to our experts. :o)
Somebody buy that man a beer.
Tim
prev parent reply other threads:[~2005-02-22 22:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-21 13:15 PO-mode help, please Tim Morley (forstreku la legoman koloron de mia retadreso)
2005-02-22 19:51 ` Kevin Rodgers
2005-02-22 22:44 ` Tim Morley (forstreku la legoman koloron de mia retadreso) [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='6BOSd.152$AY3.131@newsfe3-win.ntli.net' \
--to=t_morley@argonet.rapkolora.co.uk \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.