Redirecting output in AWKREAD/NEW/FOLLOWUP
Henry Spencer
henry at utzoo.uucp
Tue Nov 8 05:10:24 AEST 1988
In article <1169 at qit.edu.au> cszohagan at qit.edu.au writes:
>>>The problem I am having is that I cannot output to more than 10 files...
>> Well, it won't help you right now, but the long-term fix is to complain
>> to your software supplier and ask them to get rid of the silly limit.
>> It's not that hard.
>
>The limits are based on the number of file descriptors that can be open
>at one time (usually small)...
Nonsense. The limits are based on the laziness and lack of foresight of
the implementor. Dynamically allocating a limited resource (open file
descriptors) among a larger user population (awk's "open" files) is a
well-understood practice. It's utterly trivial to do for files opened
for appending (">>"), since you don't even need to remember that the file
used to be open. That's about a five-line change to awk. For ">" opens,
you do need to remember the name and the position in the file. Big deal.
There *are* awk implementations which do this. Tell your supplier to get
his act together.
--
The Earth is our mother. | Henry Spencer at U of Toronto Zoology
Our nine months are up. |uunet!attcan!utzoo!henry henry at zoo.toronto.edu
More information about the Comp.unix.wizards
mailing list