Subject: Re: Replacing in-tree gawk with nawk ?
To: Bill Studenmund <>
From: Jaromír Dolecek <>
List: tech-userlevel
Date: 02/09/2001 01:53:55
Bill Studenmund wrote:
> Indeed. gensub is just too sensible. While sub() & gsub() can do the same
> thing, their overwriting of the variable (as opposed to gensub()'s giving
> you the result) is really strange.

On the other hand, [g]sub() gives you the informating about
whether there was any match or not (returns number of replacements).
This might also be useful in some situations. Generally, I'd prefer
gensub() though :)

Jaromir Dolecek <>
@@@@  Wanna a real operating system ? Go and get NetBSD, dammit!  @@@@