[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: |
address@hidden |
Subject: |
Re: How to use the character list of regexp in gawk |
Date: |
Sun, 6 Mar 2011 02:39:01 +0800 |
Hi Arnold,
But for win32 version, it is the latest.
I also saw some other users complained the similar symptom on the same win32
version.
BTW, I already got an older win32 version and it had no such problem.
Shanfu Lin
Aharon Robbins <address@hidden> 於 2011/3/6 上午2:17 寫道:
> 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
>