[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
2 suggestions for the gawk info (3.1.3)
From: |
Neil Parks |
Subject: |
2 suggestions for the gawk info (3.1.3) |
Date: |
Tue, 09 Sep 2003 12:45:36 -0400 |
Suggestion #1:
In the pseudocode illustrating the use of "asorti" you wrote:
> { source[$0] = some_func($0) }
>
> END {
> n = asorti(source, dest)
> for (i = 1; i <= n; i++)
> DO SOMETHING WITH dest[i]
>
> }
>
>
I would suggest changing the last line to:
DO SOMETHING WITH source[dest[i]]
That would be the equivalent of the line
> DO SOMETHING WITH data[ind[i]]
in the non-asorti example.
Suggestion #2:
You wrote:
> If you have written an
> interesting awk' program, or have written a gawk' extension that you
> would like to share with the rest of the world, please contact me
> (<address@hidden>). Making things available on the Internet helps keep
> the gawk' distribution down to manageable size.
When I originally sent suggestion #1 to the above address it bounced:
> ----- The following addresses had permanent fatal errors -----
> <address@hidden>
> (reason: 550 unknown user)
>
So please put in your current address.
...This message brought to you by: NEIL EDWARD PARKS,
Beachwood, Ohio
mailto:address@hidden http://nparks.vze.com
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 9/5/2003
Tested on: 9/9/2003 12:45:41 PM
avast! is copyright (c) 2000-2003 ALWIL Software.
http://www.avast.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 2 suggestions for the gawk info (3.1.3),
Neil Parks <=