From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <978914fc9c9bab9ce8d96dabbc39e9c4@quanstro.net> References: <978914fc9c9bab9ce8d96dabbc39e9c4@quanstro.net> Date: Thu, 17 Sep 2009 19:19:12 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] awk help; not plan9 matter Topicbox-Message-UUID: 7131d3ce-ead5-11e9-9d60-3106f5b1d025 2009/9/17 erik quanstrom : > fn buildre { > =A0 =A0 =A0 =A0re =3D 's:^' > =A0 =A0 =A0 =A0for(i in `{seq 1 $1}) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0re =3D $re ^ '([^ =A0 =A0 =A0 =A0 ][ =A0 = =A0 =A0]*)' > =A0 =A0 =A0 =A0re =3D $re ^ '([^ =A0 =A0 =A0 =A0 ]):\' ^ $1 ^ $2 ^ : > } > > - erik > Yes, I now see yours and Roger Peppe's idea to build a regexps and then use= it. That's true. Only as I look at your code, not sure if it can stand possible spaces at the beginning of a line, like 1 2 3 Thanks Ruda