[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use the character list of regexp in gawk
From: |
Aharon Robbins |
Subject: |
Re: How to use the character list of regexp in gawk |
Date: |
Sat, 05 Mar 2011 20:17:41 +0200 |
User-agent: |
Heirloom mailx 12.4 7/29/08 |
Hi. This is rather weird behavior. I don't know why you're getting
it. It sounds like someone left some debug code in whatever port
you are using.
In any case, 3.1.6 is sort of old; you should get a newer version.
Thanks,
Arnold
> Subject: How to use the character list of regexp in gawk
> Date: Sat, 5 Mar 2011 23:48:34 +0800
> From: "Sun, Bill" <address@hidden>
> To: <address@hidden>
>
> Hi,
>
> I have a gawk script snippets like:
>
> if ($0 ~ /^[0-9]+$/)
>
> {
>
> $0 = "";
>
> }
>
> When I run this script under the WinXp's console, it always output a
> great of
>
> ......
>
>
> buffer: 0
>
> buffer: :
>
> buffer: Y
>
> buffer: a
>
> buffer: 4
>
> buffer: 0
>
> buffer: 8
>
>
>
> ......
>
>
>
> Is it something wrong in gawk(3.1.6) or in my script?
>
> Thanks,
>
> Bill
- Re: How to use the character list of regexp in gawk,
Aharon Robbins <=