Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 2010 13:56:49 -0800
From:      Garrett Cooper <yanefbsd@gmail.com>
To:        George Mitchell <george@m5p.com>
Cc:        FreeBSD-Hackers <hackers@freebsd.org>
Subject:   Re: User error or awk bug?
Message-ID:  <7d6fde3d1001151356y3d2f4833o972e6a0515839ef0@mail.gmail.com>
In-Reply-To: <201001152121.o0FLLiCK067174@m5p.com>
References:  <7d6fde3d1001151241tfeaa4a2j1c8448e40b2b164e@mail.gmail.com> <201001152121.o0FLLiCK067174@m5p.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 15, 2010 at 1:21 PM, George Mitchell <george@m5p.com> wrote:
> Try quoting the "/\/{2,}/" in your call to gsub. =A0 =A0 =A0 =A0 -- Georg=
e

    Doesn't work :(...:

nawk (FreeBSD) --
[gcooper@optimus ~]$ echo //////// | awk '{ gsub ("//{2,}/", "/"); print }'
////////

gawk (Gentoo Linux) --

gcooper@orangebox /scratch/ltp/scripts $ echo //////// | awk '{ gsub
("//{2,}/", "/"); print }'
////////

Thanks!
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7d6fde3d1001151356y3d2f4833o972e6a0515839ef0>