9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: michael block <michaelmuffin@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Plan9 awk vs. GNU awk
Date: Fri, 23 Oct 2009 21:45:58 -0500	[thread overview]
Message-ID: <3df301650910231945n522c4592ib25cef16e9830202@mail.gmail.com> (raw)
In-Reply-To: <bcba51a0910231920l5671994ck5b41f2b971604676@mail.gmail.com>

try using [_a-zA-Z][_a-zA-Z0-9] rather than the expanded form. i
didn't track it down to be sure, but plan 9 awk seem to have a limit
34 characters inside square brackets. a rather odd number

cpu% echo hello | awk '/^[abcdefghijklmnopqrstuvwxyzABCDEFGH].+/ {
line = $0 ; print line }'
cpu% echo hello | awk '/^[abcdefghijklmnopqrstuvwxyzABCDEFG].+/ { line
= $0 ; print line }'
hello



  reply	other threads:[~2009-10-24  2:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-24  2:20 Dimitry Golubovsky
2009-10-24  2:45 ` michael block [this message]
2009-10-24 17:32   ` Russ Cox
2009-10-24 18:34     ` Anthony Sorace
     [not found] <<3df301650910231945n522c4592ib25cef16e9830202@mail.gmail.com>
2009-10-27 17:42 ` erik quanstrom

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=3df301650910231945n522c4592ib25cef16e9830202@mail.gmail.com \
    --to=michaelmuffin@gmail.com \
    --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).