[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gawk gsub puzzle
From: |
Jürgen Kahrs |
Subject: |
Re: Gawk gsub puzzle |
Date: |
Mon, 10 Jul 2006 20:12:21 +0200 |
User-agent: |
Thunderbird 1.5.0.4 (X11/20060527) |
CelEng wrote:
> Wiki didn't really help --
>
> Solved by trial & error -- solution:
>
> gawk {gsub(/AAA/,\"ZZZ\");print} Infile.txt > Outfile.txt
You changed the quoting by escaping the ".
That's what WikiPedia suggested.
Unfortunately, some smart guy at WikiPedia
decided to remove the whole section about AWK
misconceptions from the WikiPedia entry.