From: Eckard Brauer <firstname.lastname@example.org>
Subject: Re: [9front] this history(1) is scratched
Date: Sat, 12 Nov 2022 21:32:50 +0100 [thread overview]
Message-ID: <email@example.com> (raw)
> Relatedly -- one thing I've repeatedly found myself wanting in
> awk is a way to say "give me all text between fields $A..$B,
> without modification" so, for example:
> label <and some file path with tabs, spaces, and other junk>
> would be easy to handle; something like:
> map[$1] = $2..$NF
hmm, not exactly what you want, but usually i do such things with
setting different RS, e.g.
awk -v RS='[<>]' '!(NR%2)'
but just noticed that p9 awk doesn't take RS as a regex, as gnu-awk
does. So i'd maybe translate one of them using tr before (also noticed
that escape sequences don't work with tr, however, this works somehow),
echo 'outside<and inside>angle brackets' | tr '<>' '
' | awk '!(NR%2)'
next prev parent reply other threads:[~2022-11-12 20:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-12 8:15 qwx
2022-11-12 11:03 ` Eckard Brauer
2022-11-12 12:16 ` Eckard Brauer
2022-11-12 18:07 ` Eckard Brauer
2022-11-12 19:13 ` ori
2022-11-12 20:32 ` Eckard Brauer [this message]
2022-11-12 20:44 ` Eckard Brauer
2022-11-12 20:53 ` Eckard Brauer
2022-11-12 21:26 ` ori
2022-11-12 22:43 ` umbraticus
2022-11-13 3:35 ` Anthony Martin
2022-11-13 23:20 ` qwx
2022-11-15 11:49 ` qwx
2022-11-15 21:59 ` qwx
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:
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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).